merge
This commit is contained in:
parent
379dcdcd51
commit
01e778edad
6 changed files with 56 additions and 49 deletions
|
@ -4,10 +4,14 @@ import prisma from "./prisma";
|
|||
export const getBorderById = async (id) => {
|
||||
return await prisma.borderImage.findFirst({
|
||||
where: {
|
||||
id: parseInt(id)
|
||||
}
|
||||
id: parseInt(id),
|
||||
},
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export const getAllBorders = async () => {
|
||||
return await prisma.borderImage.findMany();
|
||||
};
|
||||
|
||||
export const getUserBorders = async (req) => {
|
||||
const session = await getSession({ req });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue