removed host logging, login fix

This commit is contained in:
mrfry 2023-04-02 09:55:31 +02:00
parent e9f5eba8c1
commit 885198d357
4 changed files with 6 additions and 17 deletions

View file

@ -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