fix: ⚗️ Fix variables?
This commit is contained in:
parent
91590b2e52
commit
bb7f743127
1 changed files with 6 additions and 2 deletions
|
@ -87,8 +87,12 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where("note.userId = :meId", { meId: user.id });
|
||||
if (hasFollowing)
|
||||
qb.orWhere(`note.userId IN (${followingQuery.getQuery()})`);
|
||||
if (hasFollowing) {
|
||||
qb.orWhere(
|
||||
`note.userId IN (${followingQuery.getQuery()})`,
|
||||
followingQuery.getParameters(),
|
||||
);
|
||||
}
|
||||
}),
|
||||
)
|
||||
.innerJoinAndSelect("note.user", "user")
|
||||
|
|
Loading…
Reference in a new issue