feat(database): remove use of any
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
85cfea3cbf
commit
fa3966729f
1 changed files with 1 additions and 2 deletions
|
|
@ -104,9 +104,8 @@ export const UserImpl: Omit<IUserDb, keyof Database> = {
|
||||||
if (!isNullish(otp))
|
if (!isNullish(otp))
|
||||||
return otp;
|
return otp;
|
||||||
let otpGen = new Otp();
|
let otpGen = new Otp();
|
||||||
const res: any = this.prepare("UPDATE OR IGNORE user SET otp = @otp WHERE id = @id RETURNING otp")
|
const res: SqliteReturn = this.prepare("UPDATE OR IGNORE user SET otp = @otp WHERE id = @id RETURNING otp")
|
||||||
.get({ id, otp: otpGen.secret });
|
.get({ id, otp: otpGen.secret });
|
||||||
if (isNullish(res?.otp)) return undefined;
|
|
||||||
return res?.otp;
|
return res?.otp;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue