mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 05:38:55 +09:00
Update delete-file.ts
This commit is contained in:
parent
bcb1a9c5d3
commit
f38ab0b973
@ -42,8 +42,8 @@ export default async function(file: DriveFile, isExpired = false) {
|
||||
DriveFiles.delete(file.id);
|
||||
|
||||
// TODO: トランザクション
|
||||
Notes.createQueryBuilder('note').delete()
|
||||
.where(':id = ANY(note.fileIds)', { id: file.id })
|
||||
Notes.createQueryBuilder().delete()
|
||||
.where(':id = ANY(fileIds)', { id: file.id })
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user