mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
fix(delete-files-by-ids): delete files from the likes table
This commit is contained in:
parent
3243e217ac
commit
79be77787f
@ -32,6 +32,8 @@ export default async ({ ids, ownerId }) => {
|
||||
await DB("slates").where("id", slateId).decrement("fileCount", count);
|
||||
}
|
||||
|
||||
const likes = await DB("likes").whereIn("fileId", ids).del();
|
||||
|
||||
const activity = await DB("activity").whereIn("fileId", ids).del();
|
||||
|
||||
const files = await DB("files").whereIn("id", ids).del().returning("*");
|
||||
|
Loading…
Reference in New Issue
Block a user