shwll connection fixes

This commit is contained in:
SPRINX0\prochazka
2024-11-07 16:55:39 +01:00
parent bafa2c2fff
commit c19c69266a
6 changed files with 34 additions and 13 deletions

View File

@@ -19,6 +19,7 @@
import { apiCall } from '../utility/api';
import hasPermission from '../utility/hasPermission';
import { isProApp } from '../utility/proTools';
import { extractShellConnection } from '../impexp/createImpExpScript';
export let data;
@@ -66,10 +67,7 @@
await dbgateApi.deployDb(${JSON.stringify(
{
connection: {
..._.omit($currentDatabase.connection, '_id', 'displayName'),
database: $currentDatabase.name,
},
connection: extractShellConnection($currentDatabase.connection, $currentDatabase.name),
modelFolder: `archive:${data.name}`,
},
undefined,