mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-24 12:48:47 +00:00
fix(mariadb): correct appName validation to use built appName for uniqueness check
This commit is contained in:
@@ -18,7 +18,7 @@ export type Mariadb = typeof mariadb.$inferSelect;
|
|||||||
export const createMariadb = async (input: typeof apiCreateMariaDB._type) => {
|
export const createMariadb = async (input: typeof apiCreateMariaDB._type) => {
|
||||||
const appName = buildAppName("mariadb", input.appName);
|
const appName = buildAppName("mariadb", input.appName);
|
||||||
|
|
||||||
const valid = await validUniqueServerAppName(input.appName);
|
const valid = await validUniqueServerAppName(appName);
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
code: "CONFLICT",
|
code: "CONFLICT",
|
||||||
|
|||||||
Reference in New Issue
Block a user