Fix file newscan pointer
This commit is contained in:
parent
429e03185c
commit
ab81b247c6
|
@ -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) {
|
||||
|
|
|
@ -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};`;
|
||||
|
|
Loading…
Reference in New Issue