mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 02:35:56 +02:00
* File Base newscan basic functionality
* Try to handle unknown options in telnet server
This commit is contained in:
parent
d230a2f58b
commit
d57ca0873e
7 changed files with 108 additions and 60 deletions
|
@ -510,6 +510,14 @@ module.exports = class FileEntry {
|
|||
);
|
||||
}
|
||||
|
||||
if(_.isString(filter.newerThanTimestamp) && filter.newerThanTimestamp.length > 0) {
|
||||
appendWhereClause(`DATETIME(f.upload_timestamp) > DATETIME("${filter.newerThanTimestamp}", "+1 seconds")`);
|
||||
}
|
||||
|
||||
if(_.isNumber(filter.newerThanFileId)) {
|
||||
appendWhereClause(`file_id > ${filter.newerThanFileId}`);
|
||||
}
|
||||
|
||||
sql += `${sqlWhere} ${sqlOrderBy};`;
|
||||
|
||||
const matchingFileIds = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue