Sticky headers fix, added Heliports

This commit is contained in:
PxlLoewe
2025-07-13 00:30:46 -07:00
parent 0730737bbe
commit 768c84f171
27 changed files with 432 additions and 22 deletions

View File

@@ -0,0 +1,17 @@
"use server";
import { prisma, Prisma, Heliport } from "@repo/db";
export const upsertHeliport = async (heliport: Prisma.HeliportCreateInput, id?: Heliport["id"]) => {
const newHeliport = id
? await prisma.heliport.update({
where: { id: id },
data: heliport,
})
: await prisma.heliport.create({ data: heliport });
return newHeliport;
};
export const deleteHeliport = async (id: Heliport["id"]) => {
await prisma.heliport.delete({ where: { id: id } });
};