only updating the changed fields (performance)
This commit is contained in:
parent
03cba8fc0c
commit
5d83ff5b34
|
@ -113,8 +113,9 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
|
|||
|
||||
// mark as seen
|
||||
if($notification->is_seen == 0) {
|
||||
$orig = clone($notification);
|
||||
$notification->is_seen = 1;
|
||||
$notification->update();
|
||||
$notification->update($orig);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user