pasta
This commit is contained in:
parent
5e0c7153b9
commit
0a9b76f9c7
5 changed files with 143 additions and 3589 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue