fix: character search duplicates because of account_access (#19)

This commit is contained in:
Axel Cocat 2022-05-06 22:01:04 +02:00 committed by GitHub
parent 216904fd6e
commit 08009a575c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -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);