feat(database): remove use of any

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Maix0 2025-08-31 16:35:45 +02:00
parent 85cfea3cbf
commit fa3966729f

View file

@ -104,9 +104,8 @@ export const UserImpl: Omit<IUserDb, keyof Database> = {
if (!isNullish(otp))
return 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 });
if (isNullish(res?.otp)) return undefined;
return res?.otp;
},