mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Avoid use of IDatabase::update return value"
This commit is contained in:
commit
e4fad24538
|
@ -52,7 +52,7 @@ class BackfillReadBundles extends Maintenance {
|
|||
$displayHash = $row->notification_bundle_display_hash;
|
||||
$readTimestamp = $row->notification_read_timestamp;
|
||||
|
||||
$result = $dbw->update(
|
||||
$dbw->update(
|
||||
'echo_notification',
|
||||
[ 'notification_read_timestamp' => $readTimestamp ],
|
||||
[
|
||||
|
@ -63,10 +63,6 @@ class BackfillReadBundles extends Maintenance {
|
|||
]
|
||||
);
|
||||
|
||||
if ( !$result ) {
|
||||
$this->output( "Failed to set read_timestamp on notifications with bundle_display_hash: $displayHash\n" );
|
||||
}
|
||||
|
||||
$processed += $dbw->affectedRows();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue