Skip to content

Commit 9b1efb3

Browse files
committed
feeds: convert oldscore to int before comparing with rank
1 parent ca72c14 commit 9b1efb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/feeds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const feed = {
212212
articleAddErr.type = 'Redis Error';
213213
articleAddErr.log = zaddErr.message;
214214
stream.emit('error', articleAddErr);
215-
} else if ((oldscore === null) || (rank !== oldscore)) {
215+
} else if ((oldscore === null) || (rank !== parseInt(oldscore))) {
216216
s3.putObject({
217217
Key: key,
218218
Body: body,

0 commit comments

Comments
 (0)