diff --git a/src/database.ts b/src/database.ts index b4aff50..d62fa46 100644 --- a/src/database.ts +++ b/src/database.ts @@ -154,7 +154,7 @@ export abstract class Database(name: string, primaryKeyName: keyof Row & string | null = null) { - return new DatabaseTable(this, name, primaryKeyName); + return new DatabaseTable(this, name, primaryKeyName); } close() { void this.connection.end(); diff --git a/src/user.ts b/src/user.ts index 48e9ddd..9b9b164 100644 --- a/src/user.ts +++ b/src/user.ts @@ -434,7 +434,7 @@ export class Session { count: attempts.count, time: time(), }); } else { - await loginattempts.insert({userid, ip, time: time()}); + await loginattempts.insert({userid, time: time()}); } return false; }