Skip to content

Commit

Permalink
fix(GoogleDrive)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Oct 7, 2024
1 parent b3e4776 commit 8deed80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/adapters/GoogleDrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class GoogleDriveAdapter extends CachingAdapter {
const fileList = await this.listFiles(`name = '${this.server.bookmark_file}'`, 100)
const file = fileList.files.filter(file => !file.trashed)[0]

const filesToDelete = fileList.files.slice(1)
const filesToDelete = fileList.files.filter(file => !file.trashed).slice(1)
for (const fileToDelete of filesToDelete) {
try {
await this.deleteFile(fileToDelete.id)
Expand Down

0 comments on commit 8deed80

Please sign in to comment.