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

Function findSecurityById

packages/server/src/services/security.ts:13–24  ·  view source on GitHub ↗
(securityId: string)

Source from the content-addressed store, hash-verified

11export type Security = typeof security.$inferSelect;
12
13export const findSecurityById = async (securityId: string) => {
14 const application = await db.query.security.findFirst({
15 where: eq(security.securityId, securityId),
16 });
17 if (!application) {
18 throw new TRPCError({
19 code: "NOT_FOUND",
20 message: "Security not found",
21 });
22 }
23 return application;
24};
25
26export const createSecurity = async (
27 data: z.infer<typeof apiCreateSecurity>,

Callers 2

security.tsFile · 0.90
updateSecurityByIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected