Skip to content
Snippets Groups Projects
Unverified Commit f38ab0b9 authored by syuilo's avatar syuilo
Browse files

Update delete-file.ts

parent bcb1a9c5
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment