Fix file newscan pointer

This commit is contained in:
Bryan Ashby 2017-07-23 18:11:33 -06:00
parent 429e03185c
commit ab81b247c6
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ module.exports = class FileBaseFilters {
}
static getFileBaseLastViewedFileIdByUser(user) {
return user.properties.user_file_base_last_viewed || 0;
return parseInt((user.properties.user_file_base_last_viewed || 0));
}
static setFileBaseLastViewedFileIdForUser(user, fileId, cb) {

View File

@ -515,7 +515,7 @@ module.exports = class FileEntry {
}
if(_.isNumber(filter.newerThanFileId)) {
appendWhereClause(`file_id > ${filter.newerThanFileId}`);
appendWhereClause(`f.file_id > ${filter.newerThanFileId}`);
}
sql += `${sqlWhere} ${sqlOrderBy};`;