But not like that aaa
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
This commit is contained in:
parent
05a228d8ec
commit
d5664860ad
|
@ -67,13 +67,8 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||||
throw e;
|
throw e;
|
||||||
});
|
});
|
||||||
|
|
||||||
const cte = makePaginationQuery(
|
const cte =
|
||||||
Notes.createQueryBuilder("n"),
|
Notes.createQueryBuilder("n")
|
||||||
ps.sinceId,
|
|
||||||
ps.untilId,
|
|
||||||
ps.sinceDate,
|
|
||||||
ps.untilDate,
|
|
||||||
)
|
|
||||||
.select(`"n"."id"`, "id")
|
.select(`"n"."id"`, "id")
|
||||||
.andWhere("n.userId = :userId", { userId: user.id });
|
.andWhere("n.userId = :userId", { userId: user.id });
|
||||||
|
|
||||||
|
@ -97,7 +92,13 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const query = Notes.createQueryBuilder("note")
|
const query = makePaginationQuery(
|
||||||
|
Notes.createQueryBuilder("note"),
|
||||||
|
ps.sinceId,
|
||||||
|
ps.untilId,
|
||||||
|
ps.sinceDate,
|
||||||
|
ps.untilDate,
|
||||||
|
)
|
||||||
.addCommonTableExpression(cte, "noteCte");
|
.addCommonTableExpression(cte, "noteCte");
|
||||||
|
|
||||||
query.andWhere(`"note"."id" IN` + query.subQuery()
|
query.andWhere(`"note"."id" IN` + query.subQuery()
|
||||||
|
|
Loading…
Reference in New Issue