Fix recording sync (#291)

* delete audio/video/recording in remote

* sync recordings on profile page

* handle recording sync failed
This commit is contained in:
an-lee
2024-02-09 18:24:36 +08:00
committed by GitHub
parent 27c342cabb
commit 338ef82a1e
10 changed files with 115 additions and 25 deletions

View File

@@ -236,6 +236,9 @@ contextBridge.exposeInMainWorld("__ENJOY_APP__", {
findOne: (params: object) => {
return ipcRenderer.invoke("recordings-find-one", params);
},
syncAll: () => {
return ipcRenderer.invoke("recordings-sync-all");
},
create: (params: object) => {
return ipcRenderer.invoke("recordings-create", params);
},