certified typeorm moment
This commit is contained in:
parent
7a4ddeba16
commit
f9d9bd9f50
|
@ -69,7 +69,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
//#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 IN :instances)', { instances: formattedInstances })
|
.andWhere(`(note.userHost IN ${formattedInstances})`)
|
||||||
// .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 New Issue