Skip to content

Commit 58997d7

Browse files
committed
fix: fix shortlink order incorrect issue
1 parent 7e83dd5 commit 58997d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server/model/shortlink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export async function getWorkspaceShortLinks(workspaceId: string) {
129129
deletedAt: null,
130130
},
131131
orderBy: {
132-
createdAt: 'desc',
132+
updatedAt: 'desc',
133133
},
134134
});
135135

src/server/trpc/routers/monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ export const monitorRouter = router({
653653
)
654654
.input(
655655
z.object({
656-
monitorId: z.string().cuid2().optional(),
656+
monitorId: z.cuid2().optional(),
657657
limit: z.number().default(20),
658658
})
659659
)

0 commit comments

Comments
 (0)