parseInt uid

v1.18.x
Baris Soner Usakli 11 years ago
parent bc835f59d4
commit 0198024db0

@ -424,7 +424,7 @@ var fs = require('fs'),
if (!userData.profileviews) { if (!userData.profileviews) {
userData.profileviews = 1; userData.profileviews = 1;
} }
if (callerUID !== userData.uid) { if (parseInt(callerUID, 10) !== parseInt(userData.uid, 10)) {
user.incrementUserFieldBy(userData.uid, 'profileviews', 1); user.incrementUserFieldBy(userData.uid, 'profileviews', 1);
} }

Loading…
Cancel
Save