upd: logos and layout

This commit is contained in:
oiov
2024-07-29 23:10:38 +08:00
parent 6da95a6fca
commit 6f07e99b9e
19 changed files with 117 additions and 60 deletions
+13
View File
@@ -125,3 +125,16 @@ export async function getUserUrlMetaInfo(userId: string, urlId: string) {
},
});
}
export async function getUrlBySuffix(suffix: string) {
return await prisma.userUrl.findFirst({
where: {
url: suffix,
active: 1,
},
select: {
id: true,
target: true,
},
});
}