delete old db8 data

This commit is contained in:
yonghyon
2024-07-23 11:17:01 +09:00
parent 995f8c4f63
commit aee9b6ddba
4 changed files with 44 additions and 3 deletions

View File

@@ -291,3 +291,24 @@ export const deleteReservation = ({ onSuccess, onFailure, onComplete }) => {
onComplete,
});
};
export const deleteOldDb8 = (kind, { onSuccess, onFailure, onComplete }) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND deleteOldDb8");
onSuccess && onSuccess();
return;
}
const id=window.PalmSystem.identifier ?? appinfo.id;
return new LS2Request().send({
service: "luna://com.webos.service.db",
method: "delKind",
parameters: {
id: id+":"+kind
},
onSuccess,
onFailure,
onComplete,
});
};