Skip to content

Commit

Permalink
fix(developer): stop creating keys in unused collection
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Aug 6, 2024
1 parent 2e7db67 commit faa45b5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/developer/functions/https/createKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ export const createKey = async (data) => {
await db.runTransaction(async (transaction) => {
// add key to the collection
transaction.create(db.collection('keys').doc(apiKey.id), apiKey);

// add key to the user
transaction.create(
db.collection(`clients/${accountId}/keys`).doc(apiKey.id),
apiKey,
);
});

return apiKey.id;
Expand Down

0 comments on commit faa45b5

Please sign in to comment.