diff --git a/server/src/routes/posts.ts b/server/src/routes/posts.ts index 9ec882b..1b6d761 100644 --- a/server/src/routes/posts.ts +++ b/server/src/routes/posts.ts @@ -299,6 +299,11 @@ posts.delete("/:id", jwt, async (req: UserJwtRequest, res, next) => { model: User, as: "users", attributes: ["id"] + }, + { + model: File, + as: "files", + attributes: ["id"] } ] })