Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.26 KB

EmailUpdates.md

File metadata and controls

36 lines (26 loc) · 1.26 KB

Constants

StartMapSubscriptionvoid

Starts a cron job that runs every 30 seconds to check for updates on disasters, pins and drawing layers. If any updates are found, sends an email to all subscribers and updates the last sent email time for the disaster.

Functions

emailBody(arr)string

Returns an HTML formatted string that contains the body of an email.

StartMapSubscription ⇒ void

Starts a cron job that runs every 30 seconds to check for updates on disasters, pins and drawing layers. If any updates are found, sends an email to all subscribers and updates the last sent email time for the disaster.

Kind: global constant

emailBody(arr) ⇒ string

Returns an HTML formatted string that contains the body of an email.

Kind: global function
Returns: string - - An HTML formatted string that contains the body of an email.

Param Type Description
arr Array.<string> An array of strings that make up the body of an email.