mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-01 23:38:47 +00:00
fix(project): include appName in backup processing
- Updated backup processing logic to destructure appName from backup objects, ensuring it is available for further operations. - This change is applied consistently across multiple sections of the project router.
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