Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(query): include deleted roles or attachment for posts
Browse files Browse the repository at this point in the history
However, if the user was archived its post should be hidden.
  • Loading branch information
KennethTrecy committed Nov 27, 2022
1 parent b502590 commit fb379e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/queries/post/include_defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ export default function<T>(
},
{
"model": Role,
"paranoid": false,
"required": true
}
],
"model": AttachedRole,
"paranoid": false,
"required": true
})
castInclude.push({
Expand Down

0 comments on commit fb379e8

Please sign in to comment.