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