mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
missing transaction return
This commit is contained in:
@@ -14,7 +14,7 @@ import { findApplicationById } from "./application";
|
||||
export type Domain = typeof domains.$inferSelect;
|
||||
|
||||
export const createDomain = async (input: typeof apiCreateDomain._type) => {
|
||||
await db.transaction(async (tx) => {
|
||||
const result = await db.transaction(async (tx) => {
|
||||
const domain = await tx
|
||||
.insert(domains)
|
||||
.values({
|
||||
@@ -37,6 +37,8 @@ export const createDomain = async (input: typeof apiCreateDomain._type) => {
|
||||
|
||||
return domain;
|
||||
});
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
export const generateTraefikMeDomain = async (appName: string) => {
|
||||
|
||||
Reference in New Issue
Block a user