adminizer 4.3.0-build.97 → 4.3.0-build.98
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/lib/Adminizer.js +2 -2
- package/package.json +1 -1
package/lib/Adminizer.js
CHANGED
|
@@ -232,8 +232,8 @@ export class Adminizer {
|
|
|
232
232
|
}
|
|
233
233
|
// Хелпер для отправки уведомлений
|
|
234
234
|
async sendNotification(notification) {
|
|
235
|
-
const notificationClass = notification.notificationClass || 'general';
|
|
236
235
|
if (this.config.notifications.enabled) {
|
|
236
|
+
const notificationClass = notification.notificationClass || 'general';
|
|
237
237
|
return this.notificationHandler.dispatchNotification(notificationClass, notification);
|
|
238
238
|
}
|
|
239
239
|
else {
|
|
@@ -242,8 +242,8 @@ export class Adminizer {
|
|
|
242
242
|
}
|
|
243
243
|
// Хелпер для системных событий
|
|
244
244
|
async logSystemEvent(title, message, metadata) {
|
|
245
|
-
const systemNotificationService = this.notificationHandler.getService('system');
|
|
246
245
|
if (this.config.notifications.enabled) {
|
|
246
|
+
const systemNotificationService = this.notificationHandler.getService('system');
|
|
247
247
|
return systemNotificationService.logSystemEvent(title, message, 'system', metadata);
|
|
248
248
|
}
|
|
249
249
|
else {
|