#98, sync to server now works as well + a lot of related changes

This commit is contained in:
azivner
2018-07-24 20:35:03 +02:00
parent 013714cb5c
commit 37ab7b4641
19 changed files with 153 additions and 65 deletions

View File

@@ -15,7 +15,14 @@ async function setupSyncFromServer(req) {
return await setupService.setupSyncFromSyncServer(serverAddress, username, password);
}
async function setupSyncFromClient(req) {
const options = req.body.options;
await sqlInit.createDatabaseForSync(options);
}
module.exports = {
setupNewDocument,
setupSyncFromServer
setupSyncFromServer,
setupSyncFromClient
};