Add socket notification for status bar updates in FalukantService and enhance model sync by handling VIRTUAL fields in sequelize.js

This commit is contained in:
Torsten Schulz (local)
2025-12-18 15:25:24 +01:00
parent 31c23a0c40
commit a0a7e81927
2 changed files with 27 additions and 2 deletions

View File

@@ -4397,6 +4397,12 @@ class FalukantService extends BaseService {
}
);
await transaction.commit();
// Send socket notification to update statusbar
if (count > 0) {
notifyUser(hashedUserId, 'falukantUpdateStatus', {});
}
return { updated: count };
} catch (error) {
await transaction.rollback();