From 6aaf8cbd7dc23865b82978693c765da0ae6e68d6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 9 Aug 2022 01:09:44 -0700 Subject: [PATCH] debug log --- .../src/server/api/endpoints/notes/recommended-timeline.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts index fb48bcc35..20a73798d 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -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 const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) - .andWhere(`(note.userHost = ANY (ARRAY[${m.recommendedInstances}])`) + .andWhere(cursed) // .andWhere(new Brackets(qb => { // qb.where('note.userHost IN :instances', { instances: m.recommendedInstances }) // .orWhere('note.userHost IS NULL');