IO-3166-Global-Notifications-Part-2: Fix typo in builder function name
This commit is contained in:
@@ -79,7 +79,7 @@ const alternateTransportChangedBuilder = (data) => {
|
|||||||
* @param data
|
* @param data
|
||||||
* @returns {{app: {jobId, jobRoNumber: *, bodyShopId: *, key: string, body: string, variables: Object, recipients: *[]}, email: {jobId, jobRoNumber: *, bodyShopName: *, body: string, recipients: *[]}, fcm: {recipients: *[]}}}
|
* @returns {{app: {jobId, jobRoNumber: *, bodyShopId: *, key: string, body: string, variables: Object, recipients: *[]}, email: {jobId, jobRoNumber: *, bodyShopName: *, body: string, recipients: *[]}, fcm: {recipients: *[]}}}
|
||||||
*/
|
*/
|
||||||
const billPostedHandler = (data) => {
|
const billPostedBuilder = (data) => {
|
||||||
const facing = data?.data?.isinhouse ? "in-house" : "vendor";
|
const facing = data?.data?.isinhouse ? "in-house" : "vendor";
|
||||||
const body = `An ${facing} ${data?.data?.is_credit_memo ? "credit memo" : "bill"} has been posted.`.trim();
|
const body = `An ${facing} ${data?.data?.is_credit_memo ? "credit memo" : "bill"} has been posted.`.trim();
|
||||||
|
|
||||||
@@ -396,7 +396,7 @@ const supplementImportedBuilder = (data) => {
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
alternateTransportChangedBuilder,
|
alternateTransportChangedBuilder,
|
||||||
billPostedHandler,
|
billPostedBuilder,
|
||||||
criticalPartsStatusChangedBuilder,
|
criticalPartsStatusChangedBuilder,
|
||||||
intakeDeliveryChecklistCompletedBuilder,
|
intakeDeliveryChecklistCompletedBuilder,
|
||||||
jobAssignedToMeBuilder,
|
jobAssignedToMeBuilder,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const {
|
const {
|
||||||
jobAssignedToMeBuilder,
|
jobAssignedToMeBuilder,
|
||||||
billPostedHandler,
|
billPostedBuilder,
|
||||||
newNoteAddedBuilder,
|
newNoteAddedBuilder,
|
||||||
scheduledDatesChangedBuilder,
|
scheduledDatesChangedBuilder,
|
||||||
tasksUpdatedCreatedBuilder,
|
tasksUpdatedCreatedBuilder,
|
||||||
@@ -45,7 +45,7 @@ const notificationScenarios = [
|
|||||||
key: "bill-posted",
|
key: "bill-posted",
|
||||||
enabled: true,
|
enabled: true,
|
||||||
table: "bills",
|
table: "bills",
|
||||||
builder: billPostedHandler,
|
builder: billPostedBuilder,
|
||||||
onNew: true
|
onNew: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user