Update delete-file.ts

This commit is contained in:
syuilo 2019-04-17 02:37:37 +09:00
parent bcb1a9c5d3
commit f38ab0b973
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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();
}