fix: character search duplicates because of account_access (#19)
This commit is contained in:
parent
216904fd6e
commit
08009a575c
4 changed files with 10 additions and 10 deletions
|
|
@ -50,10 +50,9 @@ export class IndexController {
|
|||
column2: "id",
|
||||
database2: realm.authDatabase,
|
||||
kind: "LEFT",
|
||||
where: `AND \`account_access\`.\`RealmID\` IN (-1, ${realm.realmId}) AND \`account_access\`.\`gmlevel\` > 0`,
|
||||
});
|
||||
ssp = ssp.where(
|
||||
`\`account_access\`.\`id\` IS NULL OR \`account_access\`.\`RealmID\` NOT IN (-1, ${realm.realmId}) OR \`account_access\`.\`gmlevel\` = 0`,
|
||||
);
|
||||
ssp = ssp.where("`account_access`.`id` IS NULL");
|
||||
}
|
||||
|
||||
const result = await ssp.where("`deleteInfos_Account` IS NULL").run(this.armory.config.dbQueryTimeout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue