chore: Fixing linter warnings
This commit is contained in:
parent
e0ce1a8bcf
commit
c49a47a0de
33 changed files with 76 additions and 547 deletions
|
@ -42,7 +42,8 @@ ApikeyModel.prototype.sendResponse = async function (res) {
|
|||
|
||||
ApikeyModel.prototype.verify = async function (key, secret) {
|
||||
await this.unguardedRead({ id: key })
|
||||
const [valid] = await verifyPassword(secret, this.record.secret)
|
||||
const verify = await verifyPassword(secret, this.record.secret)
|
||||
const [valid] = verify
|
||||
this.verified = valid
|
||||
|
||||
return this
|
||||
|
|
|
@ -313,7 +313,7 @@ SetModel.prototype.userSets = async function (uid) {
|
|||
log.warn(`Failed to search sets for user ${uid}: ${err}`)
|
||||
}
|
||||
const list = []
|
||||
for (const set of sets) list.push(await this.revealSet(set))
|
||||
for (const set of sets) list.push(this.revealSet(set))
|
||||
|
||||
return list
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue