Fix changes requested
All checks were successful
Test / build (push) Successful in 36s

This commit is contained in:
Ethan Lane 2025-02-01 16:40:14 +00:00
parent 37346aaede
commit 7c17e1d0d0

View file

@ -63,7 +63,7 @@ export default class UserEffect extends AppBaseEntity {
const query = await repository.createQueryBuilder("effect")
.where("effect.UserId = :userId", { userId })
.where("effect.Unused > 0")
.andWhere("effect.Unused > 0")
.orderBy("effect.Name", "ASC")
.skip(page * itemsPerPage)
.take(itemsPerPage)
@ -77,8 +77,8 @@ export default class UserEffect extends AppBaseEntity {
const query = await repository.createQueryBuilder("effect")
.where("effect.UserId = :userId", { userId })
.where("effect.WhenExpires IS NOT NULL")
.andWhere("effect.WhenExpires > :now", { now: new Date() })
.andWhere("effect.WhenExpires IS NOT NULL")
.andWhere("effect.WhenExpires > :now", { now: new Date() })
.getOne();
return query;