Rename on-delete-group
This commit is contained in:
parent
709ce5377a
commit
eb6b1b9f89
|
@ -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'
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user