Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushiksaliya committed Jun 21, 2024
1 parent 409bca7 commit 50c2221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ exports.deleteMessages = onDocumentDeleted("space_thread/{threadId}", async even
}
});

exports.deletePlace = onDocumentDeleted("spaces/{spaceId}/space_places/{spaceId}".async event => {
exports.deletePlace = onDocumentDeleted("spaces/{spaceId}/space_places/{placeId}".async event => {
const snap = event.data;
var placeId = snap.data().id;

try {
await firebase_tools.firestore
.delete(`spaces/{spaceId}/space_places/{spaceId}/place_settings_by_members`, {
.delete(`spaces/{spaceId}/space_places/{placeId}/place_settings_by_members`, {
project: process.env.GCLOUD_PROJECT,
recursive: true,
yes: true,
Expand Down

0 comments on commit 50c2221

Please sign in to comment.