Remove debug log
This commit is contained in:
parent
42de210a6c
commit
e7fa99de86
|
@ -67,15 +67,10 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const cursed = `(note.userHost = ANY ('{"${m.recommendedInstances.join('","')}"}'))`;
|
const cursed = `(note.userHost = ANY ('{"${m.recommendedInstances.join('","')}"}'))`;
|
||||||
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(cursed)
|
.andWhere(cursed)
|
||||||
// .andWhere(new Brackets(qb => {
|
|
||||||
// qb.where('note.userHost IN :instances', { instances: m.recommendedInstances })
|
|
||||||
// .orWhere('note.userHost IS NULL');
|
|
||||||
// }))
|
|
||||||
.andWhere('(note.visibility = \'public\')')
|
.andWhere('(note.visibility = \'public\')')
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
.leftJoinAndSelect('user.avatar', 'avatar')
|
.leftJoinAndSelect('user.avatar', 'avatar')
|
||||||
|
|
Loading…
Reference in New Issue