Rename on-delete-group

This commit is contained in:
Ian Philips 2022-07-14 08:02:54 -06:00
parent 709ce5377a
commit eb6b1b9f89
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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