mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
#98, sync to server now works as well + a lot of related changes
This commit is contained in:
@@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user