Commit be527770 authored by nanahira's avatar nanahira

Update src/entities/whitelist-account.entity.ts

parent b762f619
Pipeline #36487 canceled with stages
in 29 seconds
...@@ -61,7 +61,8 @@ export class WhitelistAccount extends IdBase() { ...@@ -61,7 +61,8 @@ export class WhitelistAccount extends IdBase() {
@QueryColumn() @QueryColumn()
@QueryCondition((obj, qb, entityName, key) => { @QueryCondition((obj, qb, entityName, key) => {
if (obj[key] === 1) { if (obj[key] === 1) {
qb.orderBy('RANDOM()'); qb.andWhere(`${entityName}.enabled = TRUE`)
.orderBy('RANDOM()');
} }
}) })
random: number; random: number;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment