This commit is contained in:
jane 2022-04-20 10:01:43 -04:00
parent 5e0c7153b9
commit 0a9b76f9c7
5 changed files with 143 additions and 3589 deletions

View file

@ -9,8 +9,11 @@ export const getBorderById = async (id) => {
});
};
export const getAllBorders = async () => {
return await prisma.borderImage.findMany();
export const getAllBorders = async (limit = undefined, cursor = undefined) => {
return await prisma.borderImage.findMany({
take: limit,
cursor: cursor,
});
};
export const getUserBorders = async (req) => {