@xuda.io/notification_module 1.1.110 → 1.1.112
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/index.mjs +6 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -64,11 +64,12 @@ export const update_notification_status = async (req) => {
|
|
|
64
64
|
};
|
|
65
65
|
//, _ch= global[`_notification_module_ch`]
|
|
66
66
|
export const submit_notification = async (req) => {
|
|
67
|
+
debugger;
|
|
67
68
|
let { type, app_id, to_app_id, uid_arr, subject = '', body = '', delivery_method = [], display_type = 'info', ref, email, sender_uid, system, topic, params } = req;
|
|
68
69
|
let obj = {};
|
|
69
70
|
const { notification_categories } = await import(path.join(process.env.XUDA_HOME, 'notification_templates.mjs'));
|
|
70
71
|
|
|
71
|
-
let icon = 'https://dev.xuda.
|
|
72
|
+
let icon = 'https://dev.xuda.ai/dist/images/xuda_ico.png';
|
|
72
73
|
if (app_id) {
|
|
73
74
|
const app_id_reference = await _common.get_project_app_id(app_id, true);
|
|
74
75
|
const app_ret = await db_module.get_couch_doc('xuda_master', app_id_reference);
|
|
@@ -607,10 +608,10 @@ export const notifications_validation_fx = async (notification_id) => {
|
|
|
607
608
|
// // params: {
|
|
608
609
|
// // name: name,
|
|
609
610
|
// // ip: ip,
|
|
610
|
-
// // dashboard_url: `https://xuda.
|
|
611
|
-
// // dashboard_ssh_url: `https://xuda.
|
|
612
|
-
// // dashboard_ssh_assign_url: `https://xuda.
|
|
613
|
-
// // support_url: `https://xuda.
|
|
611
|
+
// // dashboard_url: `https://xuda.ai/dashboard/project/${app_id}/admin/overview`,
|
|
612
|
+
// // dashboard_ssh_url: `https://xuda.ai/dashboard/project/${app_id}/admin/overview`,
|
|
613
|
+
// // dashboard_ssh_assign_url: `https://xuda.ai/dashboard/settings/ssh_keys`,
|
|
614
|
+
// // support_url: `https://xuda.ai/schedule/sales?topic=Sales&subtopic=General+Inquiries`,
|
|
614
615
|
// // },
|
|
615
616
|
// // ref: null,
|
|
616
617
|
// // email: null,
|