rez_core 5.0.252 → 5.0.254
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/module/filter/service/filter.service.js +1 -1
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/integration/service/integration.service.js +14 -7
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/filter/service/filter.service.ts +1 -6
- package/src/module/integration/service/integration.service.ts +20 -10
package/package.json
CHANGED
|
@@ -1147,11 +1147,6 @@ export class FilterService {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
-
// ============================================
|
|
1151
|
-
// BUSINESS DAY OFFSET LOGIC (SKIPS WEEKENDS)
|
|
1152
|
-
// ALWAYS ADJUST -1 DAY FOR DB SHIFT
|
|
1153
|
-
// ============================================
|
|
1154
|
-
|
|
1155
1150
|
case 'is_before_business_days': {
|
|
1156
1151
|
if (isNaN(numVal)) {
|
|
1157
1152
|
throw new BadRequestException('Value must be a number');
|
|
@@ -1160,7 +1155,7 @@ export class FilterService {
|
|
|
1160
1155
|
const targetDate = moveBusinessDays(numVal);
|
|
1161
1156
|
|
|
1162
1157
|
return {
|
|
1163
|
-
query: `${dateColumn}
|
|
1158
|
+
query: `${dateColumn} < :${key} AND EXTRACT(DOW FROM ${dateColumn}) NOT IN (0, 6)`,
|
|
1164
1159
|
params: { [key]: targetDate },
|
|
1165
1160
|
};
|
|
1166
1161
|
}
|
|
@@ -948,16 +948,6 @@ export class IntegrationService {
|
|
|
948
948
|
const subjectPrefix = this.configService.get('SUBJECT_PREFIX');
|
|
949
949
|
const profile = this.configService.get('PROFILE');
|
|
950
950
|
|
|
951
|
-
if (subjectPrefix) {
|
|
952
|
-
const updatedSubject =
|
|
953
|
-
profile?.charAt(0).toUpperCase() +
|
|
954
|
-
profile?.slice(1) +
|
|
955
|
-
' : ' +
|
|
956
|
-
subject; // << use current subject
|
|
957
|
-
|
|
958
|
-
subject = updatedSubject;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
951
|
// Handle multiple recipients by sending to each individually
|
|
962
952
|
if (Array.isArray(to)) {
|
|
963
953
|
const results: IntegrationResult[] = [];
|
|
@@ -996,6 +986,16 @@ export class IntegrationService {
|
|
|
996
986
|
subject = templateData.subject;
|
|
997
987
|
}
|
|
998
988
|
|
|
989
|
+
if (subjectPrefix) {
|
|
990
|
+
const updatedSubject =
|
|
991
|
+
profile?.charAt(0).toUpperCase() +
|
|
992
|
+
profile?.slice(1) +
|
|
993
|
+
' : ' +
|
|
994
|
+
subject; // << use current subject
|
|
995
|
+
|
|
996
|
+
subject = updatedSubject;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
999
|
// Merge config with enhanced parameters
|
|
1000
1000
|
let finalConfig = {
|
|
1001
1001
|
...hub.config_json,
|
|
@@ -1090,6 +1090,16 @@ export class IntegrationService {
|
|
|
1090
1090
|
subject = templateData.subject;
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
+
if (subjectPrefix) {
|
|
1094
|
+
const updatedSubject =
|
|
1095
|
+
profile?.charAt(0).toUpperCase() +
|
|
1096
|
+
profile?.slice(1) +
|
|
1097
|
+
' : ' +
|
|
1098
|
+
subject; // << use current subject
|
|
1099
|
+
|
|
1100
|
+
subject = updatedSubject;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1093
1103
|
// Merge config with enhanced parameters
|
|
1094
1104
|
let finalConfig = {
|
|
1095
1105
|
...hub.config_json,
|