@riligar/elysia-backup 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const sessionManager = createSessionManager()
|
|
|
42
42
|
export const r2Backup = initialConfig => app => {
|
|
43
43
|
// State to hold runtime configuration (allows UI updates)
|
|
44
44
|
// If configPath not specified, save config alongside sourceDir for cloud deployments
|
|
45
|
-
const configPath = initialConfig.configPath ||
|
|
45
|
+
const configPath = join(initialConfig.configPath || dirname(initialConfig.sourceDir), 'backup-config.json')
|
|
46
46
|
|
|
47
47
|
// Load saved config if exists
|
|
48
48
|
let savedConfig = {}
|