From 30c4ea70f29cbe7dfda5bee46684a6b63dc68594 Mon Sep 17 00:00:00 2001 From: "hyunwoo93.cha" Date: Thu, 16 Jan 2025 11:35:58 +0900 Subject: [PATCH] db8 app Id change --- com.twin.app.shoptime/src/lunaSend/common.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/lunaSend/common.js b/com.twin.app.shoptime/src/lunaSend/common.js index fbe9aa57..fa32d901 100644 --- a/com.twin.app.shoptime/src/lunaSend/common.js +++ b/com.twin.app.shoptime/src/lunaSend/common.js @@ -326,12 +326,14 @@ export const checkFirstLaunch = ({ onSuccess, onFailure, onComplete }) => { return; } + const id = window.PalmSystem.identifier ?? appinfo.id; + return new LS2Request().send({ service: "luna://com.webos.service.db", method: "find", parameters: { query: { - from: `${appinfo.id}:20`, + from: `${id}:20`, where: [{ prop: "type", op: "=", val: "app_init" }], }, }, @@ -348,13 +350,15 @@ export const saveFirstLaunchInfo = ({ onSuccess, onFailure, onComplete }) => { return; } + const id = window.PalmSystem.identifier ?? appinfo.id; + return new LS2Request().send({ service: "luna://com.webos.service.db", method: "put", parameters: { object: [ { - _kind: `${appinfo.id}:20`, + _kind: `${id}:20`, type: "app_init", initialized: true, timestamp: new Date().toISOString(),