File size: 280 Bytes
39ccc4b
 
a3fbcaf
67ea2ab
39ccc4b
a3fbcaf
 
 
 
 
 
 
 
 
39ccc4b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use server";

import prisma from "@/_utils/prisma";

export const getLogos = async () => {
  const images = await prisma.logo.findMany({
    select: {
      id: true,
    },
    take: 24,
    orderBy: {
      id: "desc",
    },
  });
  return images.map((image) => image.id);
};