rez_core 3.1.173 → 3.1.175
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/package.json
CHANGED
|
@@ -384,16 +384,17 @@ export class WrapperService {
|
|
|
384
384
|
`Generating ICS file. Payload: ${JSON.stringify(payload)}`,
|
|
385
385
|
);
|
|
386
386
|
|
|
387
|
+
this.logger.log(payload);
|
|
388
|
+
|
|
387
389
|
if (payload.template_code) {
|
|
388
390
|
let templates = await this.datasource.query(
|
|
389
391
|
`SELECT id FROM cr_wf_comm_template
|
|
390
392
|
WHERE code = ?
|
|
391
|
-
|
|
392
|
-
AND level_type = ?
|
|
393
|
+
ORDER BY 1 DESC
|
|
393
394
|
LIMIT 1`,
|
|
394
|
-
[payload.template_code
|
|
395
|
+
[payload.template_code],
|
|
395
396
|
);
|
|
396
|
-
|
|
397
|
+
this.logger.log(templates);
|
|
397
398
|
if (templates && templates.length > 0) {
|
|
398
399
|
payload['templateId'] = templates[0].id;
|
|
399
400
|
}
|