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
@@ -2,7 +2,10 @@ import { prisma } from "@/lib/api/db";
import getPermission from "@/lib/api/getPermission";
import fs from "fs";
export default async function (collection: { id: number }, userId: number) {
export default async function deleteCollection(
collection: { id: number },
userId: number
) {
if (!collection.id)
return { response: "Please choose a valid collection.", status: 401 };