postgres can kiss my ass

This commit is contained in:
ThatOneCalculator 2022-08-09 01:26:07 -07:00
parent 30bedee17b
commit 90ecb119db

View file

@ -66,7 +66,7 @@ export default define(meta, paramDef, async (ps, user) => {
} }
} }
const cursed = `(note.userHost = ANY (ARRAY["${m.recommendedInstances.join('","')}"]))`; const cursed = `(note.userHost = ANY ('{"${m.recommendedInstances.join('","')}"}'::string[]))`;
console.log(cursed); console.log(cursed);
//#region Construct query //#region Construct query
const query = makePaginationQuery(Notes.createQueryBuilder('note'), const query = makePaginationQuery(Notes.createQueryBuilder('note'),