MCPcopy
hub / github.com/cita-777/metapi / writeBackupWebdavState

Function writeBackupWebdavState

src/server/services/backupService.ts:1197–1199  ·  view source on GitHub ↗
(next: BackupWebdavState)

Source from the content-addressed store, hash-verified

1195}
1196
1197async function writeBackupWebdavState(next: BackupWebdavState) {
1198 await upsertSetting(BACKUP_WEBDAV_STATE_SETTING_KEY, next);
1199}
1200
1201function resolveBackupWebdavAuthHeader(config: BackupWebdavConfig): string | null {
1202 if (!config.username && !config.password) return null;

Callers 2

exportBackupToWebdavFunction · 0.85
importBackupFromWebdavFunction · 0.85

Calls 1

upsertSettingFunction · 0.85

Tested by

no test coverage detected