delete old db8 data
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user