tab-seperated modals + eslint fix + much more bug fixed and improvements
This commit is contained in:
@@ -4,7 +4,7 @@ import fs from "fs";
|
||||
import { Link, UsersAndCollections } from "@prisma/client";
|
||||
import getPermission from "@/lib/api/getPermission";
|
||||
|
||||
export default async function (
|
||||
export default async function deleteLink(
|
||||
link: LinkIncludingCollectionAndTags,
|
||||
userId: number
|
||||
) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { prisma } from "@/lib/api/db";
|
||||
export default async function (userId: number) {
|
||||
export default async function getLink(userId: number) {
|
||||
const links = await prisma.link.findMany({
|
||||
where: {
|
||||
collection: {
|
||||
|
||||
@@ -7,7 +7,7 @@ import AES from "crypto-js/aes";
|
||||
import getPermission from "@/lib/api/getPermission";
|
||||
import { existsSync, mkdirSync } from "fs";
|
||||
|
||||
export default async function (
|
||||
export default async function postLink(
|
||||
link: LinkIncludingCollectionAndTags,
|
||||
userId: number
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { LinkIncludingCollectionAndTags } from "@/types/global";
|
||||
import { UsersAndCollections } from "@prisma/client";
|
||||
import getPermission from "@/lib/api/getPermission";
|
||||
|
||||
export default async function (
|
||||
export default async function updateLink(
|
||||
link: LinkIncludingCollectionAndTags,
|
||||
userId: number
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user