Skip to content

Commit

Permalink
Fix type declaration for userIds in GET function
Browse files Browse the repository at this point in the history
  • Loading branch information
swh00tw committed Mar 6, 2024
1 parent 79f9637 commit 8e906ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/recnet/src/app/api/inviteCodes/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function GET() {
// get all invite codes
const inviteCodes = await db.collection("invite-codes").get();
// gather all userIds
const userIds = [
const userIds: string[] = [
...inviteCodes.docs
.map((inviteCode) => inviteCode.data().usedBy)
.filter(notEmpty),
Expand Down

0 comments on commit 8e906ed

Please sign in to comment.