johnnynuuma / poa-simple-notification-service

Lightweight nodejs infrastructure for propagating POA contract events to interested parties
0 stars 1 forks source link

Externalize subject/message template for notification type #3

Open johnnynuuma opened 6 years ago

johnnynuuma commented 6 years ago

Currently structure for just a new Ballot but should have a mapping for:

notificationType -> message template

for example:

newBallotNotification.subject: "POA : new Ballot created -- your attention required" newBallotNotification.message:
"Validator ,

BallotId has been created by This is a This ballot expires . Ballot Description:

Please view Ballot on:

Regards, POA Simple Notification Service.

etc ...

johnnynuuma commented 6 years ago

This has moved inside of queue.js Still don't know best way to externalize ... more yaml files or additional config points in existing yaml?