Skip to content

Commit

Permalink
Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Jan 29, 2022
1 parent 57fc86f commit 546e803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/keys/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const GET: RequestHandler = async (
log.debug(request.yupData);
// Verify the user exists
const user = await DB.selectOneFrom('owners', ['user_id'], {
user_id: BigInt(request.yupData.account),
user_id: request.yupData.account + '',
});

if (!user) {
Expand All @@ -31,7 +31,7 @@ export const GET: RequestHandler = async (
// Push key to DB
DB.insertInto('keys', {
key: key.random.toString(),
owner_id: user.user_id,
owner_id: BigInt(user.user_id.toString()),
});

// Send key back to user
Expand Down

0 comments on commit 546e803

Please sign in to comment.