mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
' in qdb names fix, syncdate empty since query fix
This commit is contained in:
parent
b6215f50fb
commit
0f66411b96
1 changed files with 3 additions and 3 deletions
|
@ -523,7 +523,7 @@ function setup(data: SubmoduleData): Submodule {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNewUsersSince(since?: number) {
|
function getNewUsersSince(since: number) {
|
||||||
const users = dbtools.runStatement(
|
const users = dbtools.runStatement(
|
||||||
userDB,
|
userDB,
|
||||||
`SELECT *
|
`SELECT *
|
||||||
|
@ -545,7 +545,7 @@ function setup(data: SubmoduleData): Submodule {
|
||||||
return {
|
return {
|
||||||
...qdb,
|
...qdb,
|
||||||
index: availableIndexes[i],
|
index: availableIndexes[i],
|
||||||
path: `questionDbs/${qdb.name}.json'`,
|
path: `questionDbs/${qdb.name}.json`,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -955,7 +955,7 @@ function setup(data: SubmoduleData): Submodule {
|
||||||
// it could help in determining if it should be checked for new data, but it would only save
|
// it could help in determining if it should be checked for new data, but it would only save
|
||||||
// a getNewDataSince() call per question db
|
// a getNewDataSince() call per question db
|
||||||
logger.LogReq(req)
|
logger.LogReq(req)
|
||||||
const since = +req.query.since
|
const since = Number.isNaN(+req.query.since) ? 0 : +req.query.since
|
||||||
const remoteHost = req.query.host
|
const remoteHost = req.query.host
|
||||||
|
|
||||||
const questionDbsWithNewQuestions = Number.isNaN(since)
|
const questionDbsWithNewQuestions = Number.isNaN(since)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue