From eb6b1b9f89e20ac0642bee354ec5070a5331f140 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 14 Jul 2022 08:02:54 -0600 Subject: [PATCH] Rename on-delete-group --- functions/src/index.ts | 2 +- functions/src/{on-group-delete.ts => on-delete-group.ts} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename functions/src/{on-group-delete.ts => on-delete-group.ts} (94%) diff --git a/functions/src/index.ts b/functions/src/index.ts index b3f65a4f..3055f8dc 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -21,7 +21,7 @@ export * from './on-create-group' export * from './on-update-user' export * from './on-create-comment-on-group' export * from './on-create-txn' -export * from './on-group-delete' +export * from './on-delete-group' // v2 export * from './health' diff --git a/functions/src/on-group-delete.ts b/functions/src/on-delete-group.ts similarity index 94% rename from functions/src/on-group-delete.ts rename to functions/src/on-delete-group.ts index e078bbcd..ca833254 100644 --- a/functions/src/on-group-delete.ts +++ b/functions/src/on-delete-group.ts @@ -5,7 +5,7 @@ import { Group } from 'common/group' import { Contract } from 'common/contract' const firestore = admin.firestore() -exports.onGroupDelete = functions.firestore +export const onDeleteGroup = functions.firestore .document('groups/{groupId}') .onDelete(async (change) => { const group = change.data() as Group