replace andWhere with where

This commit is contained in:
Hazelnoot 2025-05-14 23:26:22 -04:00
parent b7b30bde5d
commit 10622ceec7

View file

@ -66,7 +66,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
) { ) {
super(meta, paramDef, async (ps, me) => { super(meta, paramDef, async (ps, me) => {
const query = this.usersRepository.createQueryBuilder('user') const query = this.usersRepository.createQueryBuilder('user')
.andWhere('user.isExplorable = TRUE') .where('user.isExplorable = TRUE')
.andWhere('user.isSuspended = FALSE'); .andWhere('user.isSuspended = FALSE');
switch (ps.state) { switch (ps.state) {