We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3faad1 commit 8aa911fCopy full SHA for 8aa911f
backend/src/services/BackupService.js
@@ -131,8 +131,8 @@ export class BackupService {
131
132
let { data } = backupData;
133
134
- // 在合并模式下进行 admin_id 映射
135
- if (mode === "merge" && currentAdminId) {
+ // 进行 admin_id 映射(覆盖和合并模式)
+ if (currentAdminId && (mode === "merge" || mode === "overwrite")) {
136
data = this.mapAdminIds(data, currentAdminId);
137
}
138
@@ -420,7 +420,7 @@ export class BackupService {
420
mapAdminIds(data, currentAdminId) {
421
const mappedData = { ...data };
422
423
- console.log(`[BackupService] 合并模式:映射 admin_id 到当前管理员 ${currentAdminId}`);
+ console.log(`[BackupService] 映射 admin_id 到当前管理员 ${currentAdminId}`);
424
425
// 处理 s3_configs 表
426
if (mappedData.s3_configs) {
0 commit comments