tab-seperated modals + eslint fix + much more bug fixed and improvements

This commit is contained in:
Daniel
2023-06-10 02:01:14 +03:30
parent dcdef77387
commit 2df4aad077
64 changed files with 713 additions and 373 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
import { prisma } from "@/lib/api/db";
export default async (userId: number, collectionId: number) => {
export default async function getPermission(
userId: number,
collectionId: number
) {
const check = await prisma.collection.findFirst({
where: {
AND: {
@@ -12,4 +15,4 @@ export default async (userId: number, collectionId: number) => {
});
return check;
};
}