Skip to content

Commit 4338278

Browse files
author
tung-hpzbook
committed
minor fix
1 parent ee17cc5 commit 4338278

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,13 @@ async function syncDeletedNoteIds({deletedNoteIds, credentials, gitCredentials,
460460
uploadPromises.push(uploadDeletedNotesToS3(finalIdArray, credentials));
461461
}
462462
if (gitCredentials?.repoUrl) {
463-
uploadPromises.push(_GLOBAL.uploadDeletedNotesToGit(finalIdArray, gitCredentials));
463+
uploadPromises.push(_GLOBAL.uploadDeletedNotesToGit?.(finalIdArray, gitCredentials));
464464
}
465465
if (gdriveStore?.connected) {
466-
uploadPromises.push(_GLOBAL.uploadDeletedNotesToGoogleDrive(finalIdArray));
466+
uploadPromises.push(_GLOBAL.uploadDeletedNotesToGoogleDrive?.(finalIdArray));
467467
}
468468
if (credentials?.useDirectIpfs || credentials?.pinataJwt || credentials?.pinataApiKey) {
469-
uploadPromises.push(window.uploadDeletedNotesToIPFS(finalIdArray, credentials));
469+
uploadPromises.push(_GLOBAL.uploadDeletedNotesToIPFS?.(finalIdArray, credentials));
470470
}
471471
await Promise.allSettled(uploadPromises);
472472
} else {

0 commit comments

Comments
 (0)