Skip to content

Commit

Permalink
fix(build): Fixing build issues in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbenton committed Apr 25, 2024
1 parent fa6a020 commit daa3632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export const getHomebrewEditorInviteKey = onCall<

const linkDocuments = (
await getFirestore()
.collection(`/homebrew/homebrew/editorInviteKeys`)
.collection("/homebrew/homebrew/editorInviteKeys")
.where("collectionId", "==", homebrewCollectionId)
.get()
).docs;

if (linkDocuments.length === 0) {
logger.info("No link documents found, creating one.");
getFirestore().collection(`/homebrew/homebrew/editorInviteKeys`).add({
getFirestore().collection("/homebrew/homebrew/editorInviteKeys").add({
collectionId: homebrewCollectionId,
});
}
Expand Down

0 comments on commit daa3632

Please sign in to comment.