debug log
This commit is contained in:
parent
acbc9a6a8d
commit
cf69eb05d0
1 changed files with 3 additions and 1 deletions
|
@ -66,10 +66,12 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const cursed = `(note.userHost = ANY (ARRAY[${m.recommendedInstances}])`;
|
||||||
|
console.log(cursed);
|
||||||
//#region Construct query
|
//#region Construct query
|
||||||
const query = makePaginationQuery(Notes.createQueryBuilder('note'),
|
const query = makePaginationQuery(Notes.createQueryBuilder('note'),
|
||||||
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
|
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
|
||||||
.andWhere(`(note.userHost = ANY (ARRAY[${m.recommendedInstances}])`)
|
.andWhere(cursed)
|
||||||
// .andWhere(new Brackets(qb => {
|
// .andWhere(new Brackets(qb => {
|
||||||
// qb.where('note.userHost IN :instances', { instances: m.recommendedInstances })
|
// qb.where('note.userHost IN :instances', { instances: m.recommendedInstances })
|
||||||
// .orWhere('note.userHost IS NULL');
|
// .orWhere('note.userHost IS NULL');
|
||||||
|
|
Loading…
Reference in a new issue