mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
debug log
This commit is contained in:
parent
9a4f1cd3ac
commit
66290e572f
@ -64,12 +64,11 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||||||
throw new ApiError(meta.errors.rtlDisabled);
|
throw new ApiError(meta.errors.rtlDisabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(`\n\n${m.recommendedInstances}\n\n`)
|
||||||
|
|
||||||
// .andWhere('(note.userHost IN (:instances)) OR (note.userHost IS NULL)', { instances: instances })
|
|
||||||
//#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)
|
||||||
// Query where note.userHost is in recommended instances
|
|
||||||
.andWhere('(note.userHost IN (:instances)) OR (note.userHost IS NULL)', { instances: m.recommendedInstances })
|
.andWhere('(note.userHost IN (:instances)) OR (note.userHost IS NULL)', { instances: m.recommendedInstances })
|
||||||
// .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 })
|
||||||
|
Loading…
Reference in New Issue
Block a user