MCPcopy
hub / github.com/Dokploy/dokploy / updateDomainById

Function updateDomainById

packages/server/src/services/domain.ts:117–131  ·  view source on GitHub ↗
(
	domainId: string,
	domainData: Partial<Domain>,
)

Source from the content-addressed store, hash-verified

115};
116
117export const updateDomainById = async (
118 domainId: string,
119 domainData: Partial<Domain>,
120) => {
121 const domain = await db
122 .update(domains)
123 .set({
124 ...domainData,
125 ...(domainData.host && { host: domainData.host.trim() }),
126 })
127 .where(eq(domains.domainId, domainId))
128 .returning();
129
130 return domain[0];
131};
132
133export const removeDomainById = async (domainId: string) => {
134 await findDomainById(domainId);

Callers 3

domain.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected