@optimiser/common 1.0.418 → 1.0.420
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utility.js +6 -5
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -564,7 +564,7 @@ exports.UpdateRecentViewFields = UpdateRecentViewFields;
|
|
|
564
564
|
//Sync child object
|
|
565
565
|
function SyncChildObjectData(pageData, objectID, db) {
|
|
566
566
|
return __awaiter(this, void 0, void 0, function () {
|
|
567
|
-
var objectName, i, group, objectData, childID, childData, childFieldsObj, syncFields, _loop_5, i_3, childFieldsObj, _loop_6, i_4, insertedChildData,
|
|
567
|
+
var objectName, i, group, objectData, childID, childData, childFieldsObj, syncFields, _loop_5, i_3, childFieldsObj, _loop_6, i_4, insertedChildData, insertedChildID, parentFieldObj;
|
|
568
568
|
return __generator(this, function (_a) {
|
|
569
569
|
switch (_a.label) {
|
|
570
570
|
case 0:
|
|
@@ -689,16 +689,16 @@ function SyncChildObjectData(pageData, objectID, db) {
|
|
|
689
689
|
return [4 /*yield*/, db.collection(group.ChildObject).insertOne(childFieldsObj)];
|
|
690
690
|
case 11:
|
|
691
691
|
insertedChildData = _a.sent();
|
|
692
|
-
|
|
692
|
+
insertedChildID = insertedChildData.insertedId;
|
|
693
693
|
if (!(group.ParentObjectField != undefined)) return [3 /*break*/, 13];
|
|
694
694
|
parentFieldObj = {};
|
|
695
|
-
parentFieldObj[group.ParentObjectField] =
|
|
695
|
+
parentFieldObj[group.ParentObjectField] = insertedChildID;
|
|
696
696
|
return [4 /*yield*/, db.collection(objectName).updateOne({ _id: objectID }, { $set: parentFieldObj })];
|
|
697
697
|
case 12:
|
|
698
698
|
_a.sent();
|
|
699
699
|
_a.label = 13;
|
|
700
700
|
case 13:
|
|
701
|
-
SyncFieldInSameCollectionByObjectID(group.ChildObject,
|
|
701
|
+
SyncFieldInSameCollectionByObjectID(group.ChildObject, insertedChildID, db);
|
|
702
702
|
_a.label = 14;
|
|
703
703
|
case 14:
|
|
704
704
|
i++;
|
|
@@ -5902,7 +5902,8 @@ exports.Delay = Delay;
|
|
|
5902
5902
|
* @reply {string} wraps the complete content structure
|
|
5903
5903
|
*/
|
|
5904
5904
|
var ACTIVITY_MAIL_TEMPLATE = function (content) {
|
|
5905
|
-
|
|
5905
|
+
// QPC-10148: Updating project name team to 'CRM' in email footer
|
|
5906
|
+
return "<html xmlns:v=\"urn:schemas-microsoft-com:vml\">\n <head>\n <style> v:* { behavior: url(#default#VML); }</style >\n </head>\n <body style='background-color: #fff;'>\n <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n <!-- <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#fff;\"> -->\n <tr>\n <td align=\"center\" valign=\"top\">\n <table width=\"650\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#fff;\">\n <tr>\n <td align=\"center\" valign=\"top\" bgcolor=\"#fff\" style=\"background-color: #fff; text-align: left; padding-right: 0px; padding-left: 0px; font-size:16px; font-family:Arial, Helvetica, sans-serif; color:#000000;\">\n ".concat(content, "\n <p style=\"margin-bottom: 1em;\">\n Thanks,<br>\n ").concat(constants_1.default.ProjectName, " CRM\n </p>\n </td>\n </tr> \n </table>\n <tr>\n <td>\n <tr>\n <td style=\"text-align: center;\">\n <table style=\"margin: 0 auto;\">\n <tr>\n <td style=\"padding: 3px; font-size:13px; font-family:Arial, Helvetica, sans-serif;\">Powered By</td>\n <td style=\"padding: 3px;\"><a target=\"_blank\" href=\"https://www.optimiser.com\"><img src=\"https://platform.optimiser.com/images/MainLogo.png\" style=\"height: 45px;\"></a></td>\n </tr>\n </table>\n </td>\n </tr>\n </td>\n </tr>\n </td>\n </tr>\n </table>\n </body>");
|
|
5906
5907
|
};
|
|
5907
5908
|
/**
|
|
5908
5909
|
* Common Mail Template Structure
|