Logo.Ai / app /_actions /logos.ts
enzostvs's picture
enzostvs HF Staff
test
39ccc4b
raw
history blame
280 Bytes
"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);
};