Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "triggers"

Index

Variables

Const db

db: Firestore = admin.firestore()

firestore instance

Const newMessageEn

newMessageEn: Runnable<DocumentSnapshot> & TriggerAnnotated & function = functions// .region('europe-west1').firestore.document('messages_en-US/{messageId}')// tslint:disable-next-line:promise-function-async.onCreate((snap, context) =>sendMailForNewMessageEn(snap.data()).then(value => {console.log(value);return value;}).catch(err => {console.error('functions.onCreate', err);return err;}))

new message trigger function for en-US

Const newMessageTr

newMessageTr: Runnable<DocumentSnapshot> & TriggerAnnotated & function = functions// .region('europe-west1').firestore.document('messages_tr-TR/{messageId}')// tslint:disable-next-line:promise-function-async.onCreate((snap, context) =>sendMailForNewMessageTr(snap.data()).then(value => {console.log(value);return value;}).catch(err => {console.error('functions.onCreate', err);return err;}))

new message trigger function for tr-TR

Functions

Const sendMailForNewMessageEn

  • sendMailForNewMessageEn(newMessageData: ContactModel): Promise<any>

Const sendMailForNewMessageTr

  • sendMailForNewMessageTr(newMessageData: ContactModel): Promise<any>

Generated using TypeDoc