MCPcopy
hub / github.com/msgbyte/tianji / getWorkspaceShortLinks

Function getWorkspaceShortLinks

src/server/model/shortlink.ts:125–137  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

123 * Get all short links for a workspace
124 */
125export async function getWorkspaceShortLinks(workspaceId: string) {
126 const shortLinks = await prisma.shortLink.findMany({
127 where: {
128 workspaceId,
129 deletedAt: null,
130 },
131 orderBy: {
132 updatedAt: 'desc',
133 },
134 });
135
136 return shortLinks;
137}
138
139/**
140 * Record access log for short link

Callers 1

shortlink.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected