Skip to content

Commit

Permalink
Fix setting edits_pending to relationships since counters were tempor…
Browse files Browse the repository at this point in the history
…arily disabled
  • Loading branch information
ocharles committed Jul 31, 2012
1 parent fc924f5 commit 019be26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MusicBrainz/Server/Data/Relationship.pm
Expand Up @@ -402,7 +402,7 @@ sub adjust_edit_pending
$self->_check_types($type0, $type1);

my $query = "UPDATE l_${type0}_${type1}
SET edits_pending = edits_pending + ?
SET edits_pending = numeric_larger(0, edits_pending + ?)
WHERE id IN (" . placeholders(@ids) . ")";
$self->sql->do($query, $adjust, @ids);
}
Expand Down

0 comments on commit 019be26

Please sign in to comment.