1
0
Fork 0

chore: Fixing linter warnings

This commit is contained in:
joostdecock 2023-05-19 16:31:28 +02:00
parent e0ce1a8bcf
commit c49a47a0de
33 changed files with 76 additions and 547 deletions

View file

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

View file

@ -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
}