mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 17:36:43 -06:00
lint fix
This commit is contained in:
parent
4f0bb70118
commit
6fe13f1a63
1 changed files with 2 additions and 2 deletions
|
@ -76,9 +76,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
if (typeof ps.blocked === 'boolean') {
|
||||
const meta = await this.metaService.fetch(true);
|
||||
if (ps.blocked) {
|
||||
query.andWhere(meta.blockedHosts.length === 0 ? '1=0': 'instance.host IN (:...blocks)', { blocks: meta.blockedHosts });
|
||||
query.andWhere(meta.blockedHosts.length === 0 ? '1=0' : 'instance.host IN (:...blocks)', { blocks: meta.blockedHosts });
|
||||
} else {
|
||||
query.andWhere(meta.blockedHosts.length === 0 ? '1=1': 'instance.host NOT IN (:...blocks)', { blocks: meta.blockedHosts });
|
||||
query.andWhere(meta.blockedHosts.length === 0 ? '1=1' : 'instance.host NOT IN (:...blocks)', { blocks: meta.blockedHosts });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue