mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
removed host logging, login fix
This commit is contained in:
parent
e9f5eba8c1
commit
885198d357
4 changed files with 6 additions and 17 deletions
|
@ -380,6 +380,7 @@ function setup(data: SubmoduleData): Submodule {
|
|||
let peers: PeerInfo[] = utils.ReadJSON(paths.peersFile)
|
||||
let selfInfo: PeerInfo = utils.ReadJSON(paths.selfInfoFile)
|
||||
|
||||
// TODO: this should be checked by files!
|
||||
if (!isJsonValidAndLogError(peers, PeersInfoSchema, paths.peersFile)) {
|
||||
throw new Error('Invalid peers file')
|
||||
}
|
||||
|
@ -895,7 +896,10 @@ function setup(data: SubmoduleData): Submodule {
|
|||
res.json(getSelfInfo(true))
|
||||
})
|
||||
|
||||
// TODO: get all user files
|
||||
|
||||
app.get('/getnewdatasince', (req: Request, res: Response<SyncDataRes>) => {
|
||||
// TODO: add to third party peers, and recieve self info
|
||||
// FIXME: hash question db to see if different?
|
||||
// it could help in determining if it should be checked for new data, but it would only save
|
||||
// a getNewDataSince() call per question db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue