mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Update delete-file.ts
This commit is contained in:
parent
475e613931
commit
a08a0270e7
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ export default async function(file: DriveFile, isExpired = false) {
|
||||||
DriveFiles.delete(file.id);
|
DriveFiles.delete(file.id);
|
||||||
|
|
||||||
// TODO: トランザクション
|
// TODO: トランザクション
|
||||||
Notes.createQueryBuilder('note').delete()
|
Notes.createQueryBuilder().delete()
|
||||||
.where(':id = ANY(note.fileIds)', { id: file.id })
|
.where(':id = ANY(fileIds)', { id: file.id })
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue