mirror of
https://github.com/janoodleFTW/timy-messenger.git
synced 2026-01-23 02:14:39 +00:00
12 lines
417 B
JavaScript
12 lines
417 B
JavaScript
const functions = require('firebase-functions');
|
|
const { deleteCalendarEntry } = require('./calendar-update');
|
|
|
|
const deleteChannel = functions
|
|
.region('europe-west1')
|
|
.firestore
|
|
.document('/groups/{groupId}/channels/{channelId}')
|
|
.onDelete(async (snap, context) => {
|
|
return await deleteCalendarEntry(context.params.groupId, context.params.channelId);
|
|
});
|
|
|
|
module.exports = deleteChannel;
|