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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user