Skip to content

Commit

Permalink
fix: import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-nowicki committed Jul 14, 2024
1 parent fcaa20b commit 94f76e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions functions/userAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

const { ID } = require('appwrite');
const sdk = require('node-appwrite');
import { Collection } from '@/api/apiFunctions.enum';

/**
* creates a new user record in the User collection
Expand Down Expand Up @@ -46,7 +45,7 @@ const user = async ({ req, res }) => {
// get the list of participants and survivors from the league
const league = await databases.getDocument(
process.env.DATABASE_ID,
Collection.LEAGUE,
'6626a937b6302f6a4d28',
'66311a210039f0532044',
);

Expand All @@ -55,7 +54,7 @@ const user = async ({ req, res }) => {

await databases.updateDocument(
process.env.DATABASE_ID,
Collection.LEAGUE,
'6626a937b6302f6a4d28',
'66311a210039f0532044',
{
participants: updatedParticipants,
Expand Down

0 comments on commit 94f76e1

Please sign in to comment.