Skip to content
Snippets Groups Projects
Unverified Commit dc8ab011 authored by taichan's avatar taichan Committed by GitHub
Browse files

fix(backend): お知らせのページネーションが機能しない #11800 (#11890)

* fix(backend): お知らせのページネーションが機能しない #11800

* Update CHANGELOG
parent 281369d8
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,16 @@
-->
## (unreleased)
### General
-
### Client
-
### Server
- Fix: お知らせのページネーションが機能しない
## 2023.9.0 (unreleased)
### Note
......
......@@ -52,7 +52,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
) {
super(meta, paramDef, async (ps, me) => {
const query = this.queryService.makePaginationQuery(this.announcementsRepository.createQueryBuilder('announcement'), ps.sinceId, ps.untilId)
.where('announcement.isActive = :isActive', { isActive: ps.isActive })
.andWhere('announcement.isActive = :isActive', { isActive: ps.isActive })
.andWhere(new Brackets(qb => {
if (me) qb.orWhere('announcement.userId = :meId', { meId: me.id });
qb.orWhere('announcement.userId IS NULL');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment