mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-16 19:35:25 +02:00
fix(api): return database object from create endpoints
Database creation APIs (mysql, mariadb, postgres, mongo) now return the created database object with databaseID instead of boolean true. This enables automation workflows to deploy databases immediately after creation. Fixes #3268
This commit is contained in:
@@ -91,7 +91,7 @@ export const postgresRouter = createTRPCRouter({
|
||||
type: "volume",
|
||||
});
|
||||
|
||||
return true;
|
||||
return newPostgres;
|
||||
} catch (error) {
|
||||
if (error instanceof TRPCError) {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user