[Nextcloud-Migration]: add "dir" param (#427)

This permit one to use an existing directory instead of downloading from Nextcloud
This commit is contained in:
Yadd
2024-03-11 15:02:53 +04:00
committed by GitHub
parent bd2d5c2ba6
commit 423e7f2c00
2 changed files with 7 additions and 6 deletions
@@ -60,7 +60,7 @@ app.post("/", async (req: Request, res: Response) => {
res.status(400).send("Username and password for nextcloud are required");
}
try {
await nextcloud.migrate(params.username, params.password);
await nextcloud.migrate(params.username, params.password, params.dir);
res.status(200).send("Sync DONE ✅");
} catch (e) {
console.error(e)