aboutsummaryrefslogtreecommitdiff
path: root/prisma/removed.ts
blob: b6e31be940dfd34858d41ec59c77af79996cf827 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import { prisma } from "@/lib/prisma";

export const getRemovedMedia = async (): Promise<any | null> => {
  try {
    const removedMedia = await prisma.removedMedia.findMany();
    return removedMedia;
  } catch (error) {
    return null;
  }
};