Skip to content

Commit 8aa911f

Browse files
committed
chore: backup
1 parent a3faad1 commit 8aa911f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/services/BackupService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export class BackupService {
131131

132132
let { data } = backupData;
133133

134-
// 在合并模式下进行 admin_id 映射
135-
if (mode === "merge" && currentAdminId) {
134+
// 进行 admin_id 映射(覆盖和合并模式)
135+
if (currentAdminId && (mode === "merge" || mode === "overwrite")) {
136136
data = this.mapAdminIds(data, currentAdminId);
137137
}
138138

@@ -420,7 +420,7 @@ export class BackupService {
420420
mapAdminIds(data, currentAdminId) {
421421
const mappedData = { ...data };
422422

423-
console.log(`[BackupService] 合并模式:映射 admin_id 到当前管理员 ${currentAdminId}`);
423+
console.log(`[BackupService] 映射 admin_id 到当前管理员 ${currentAdminId}`);
424424

425425
// 处理 s3_configs 表
426426
if (mappedData.s3_configs) {

0 commit comments

Comments
 (0)