fix(db/user): small issues in user database layer
This commit is contained in:
parent
1cbd778131
commit
5306ccfc60
1 changed files with 1 additions and 1 deletions
|
|
@ -2,11 +2,11 @@ import type { Database, SqliteReturn } from './_base';
|
|||
import { Otp } from '@shared/auth';
|
||||
import { isNullish } from '@shared/utils';
|
||||
import * as bcrypt from 'bcrypt';
|
||||
import { UUID } from 'uuidv7';
|
||||
|
||||
// never use this directly
|
||||
|
||||
export interface IUserDb extends Database {
|
||||
getUser(id: UserId): User | undefined,
|
||||
getUserFromName(name: string): User | undefined,
|
||||
getUser(id: string): User | undefined,
|
||||
getUserOtpSecret(id: UserId): string | undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue