implement MC prios and trials no reserve

This commit is contained in:
peter
2020-02-11 14:44:01 +01:00
parent 3b7de5cf2d
commit 3671f11749
2 changed files with 21 additions and 3 deletions
@@ -289,12 +289,14 @@ export class RaidManager
.select('*', 's.id as id')
.join('raids as r', 's.raidid', '=', 'r.id')
.join('characters as c', 's.characterid', '=', 'c.id')
.join('users as u', 'u.id', '=' ,'c.userid')
.join(raidInDb.tier + 'tokens as t', 't.characterid', '=', 'c.id')
.join('items as i', 'i.itemname', '=', 't.itemname')
.where({
'r.id': raid.id,
})
.andWhere(function () {
this.whereNotIn('u.rank', ['Trial', 'Guest'])
this.whereNotNull('t.signupid')
})