Revert "[SHOPTIME-3325] 앱 삭제 후 재설치 시 과거 데이터 유지됨"

This reverts commit b3e1890c9d.
This commit is contained in:
hyunwoo93.cha
2025-01-14 16:05:15 +09:00
parent 537f6a9120
commit 6b64459586
4 changed files with 2 additions and 96 deletions

View File

@@ -319,55 +319,3 @@ export const deleteOldDb8 = (kind, { onSuccess, onFailure, onComplete }) => {
onComplete,
});
};
export const checkFirstLaunch = ({ onSuccess, onFailure, onComplete }) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND checkFirstLaunch");
onSuccess({ results: [] });
return;
}
return new LS2Request().send({
service: "luna://com.webos.service.db",
method: "find",
parameters: {
query: {
from: "com.shoptime.app.settings:1",
where: [
{
prop: "usedApp",
op: "=",
val: true,
},
],
},
},
onSuccess,
onFailure,
onComplete,
});
};
export const setFirstLaunch = ({ onSuccess, onFailure, onComplete }) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND setFirstLaunch");
onSuccess();
return;
}
return new LS2Request().send({
service: "luna://com.webos.service.db",
method: "put",
parameters: {
objects: [
{
_kind: "com.shoptime.app.settings:1",
usedApp: true,
},
],
},
onSuccess,
onFailure,
onComplete,
});
};