mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
Merge pull request #3603 from Dokploy/3581-duplicating-a-database-fails-with-unique-constraint-violation-backup_appname_unique
fix(project): include appName in backup processing
This commit is contained in:
@@ -506,7 +506,7 @@ export const projectRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const backup of backups) {
|
for (const backup of backups) {
|
||||||
const { backupId, ...rest } = backup;
|
const { backupId, appName: _appName, ...rest } = backup;
|
||||||
await createBackup({
|
await createBackup({
|
||||||
...rest,
|
...rest,
|
||||||
postgresId: newPostgres.postgresId,
|
postgresId: newPostgres.postgresId,
|
||||||
@@ -542,7 +542,7 @@ export const projectRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const backup of backups) {
|
for (const backup of backups) {
|
||||||
const { backupId, ...rest } = backup;
|
const { backupId, appName: _appName, ...rest } = backup;
|
||||||
await createBackup({
|
await createBackup({
|
||||||
...rest,
|
...rest,
|
||||||
mariadbId: newMariadb.mariadbId,
|
mariadbId: newMariadb.mariadbId,
|
||||||
@@ -578,7 +578,7 @@ export const projectRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const backup of backups) {
|
for (const backup of backups) {
|
||||||
const { backupId, ...rest } = backup;
|
const { backupId, appName: _appName, ...rest } = backup;
|
||||||
await createBackup({
|
await createBackup({
|
||||||
...rest,
|
...rest,
|
||||||
mongoId: newMongo.mongoId,
|
mongoId: newMongo.mongoId,
|
||||||
@@ -614,7 +614,7 @@ export const projectRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const backup of backups) {
|
for (const backup of backups) {
|
||||||
const { backupId, ...rest } = backup;
|
const { backupId, appName: _appName, ...rest } = backup;
|
||||||
await createBackup({
|
await createBackup({
|
||||||
...rest,
|
...rest,
|
||||||
mysqlId: newMysql.mysqlId,
|
mysqlId: newMysql.mysqlId,
|
||||||
|
|||||||
Reference in New Issue
Block a user