Skip to content

Commit

Permalink
Remove insertUser api
Browse files Browse the repository at this point in the history
Since we wer currently just inserting the unsalted password into the DB.
  • Loading branch information
Francis Duvivier committed Dec 4, 2024
1 parent ef76ebc commit c04df81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/db/BadgeHubDataPostgresAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ export class BadgeHubDataPostgresAdapter implements BadgeHubDataPort {
}

async insertUser(user: DBInsertUser): Promise<void> {
const { keys, values } = getInsertKeysAndValuesSql(user);
const insertQuery = sql`insert into users (${keys})
values (${values})`;
await this.pool.query(insertQuery);
// TODO implement with proper password management

throw new Error("Method not implemented.");
}

async getCategories(): Promise<Category[]> {
Expand Down

0 comments on commit c04df81

Please sign in to comment.