This commit is contained in:
PxlLoewe
2025-07-06 00:36:48 -07:00
parent 2cdbab9f28
commit a9d20e018d
13 changed files with 72 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
"use server";
import { prisma, Prisma } from "@repo/db";
export const addMessage = async (notam: Prisma.NotamCreateInput) => {
export const addMessage = async (notam: Prisma.ConfigCreateInput) => {
try {
await prisma.notam.create({
await prisma.config.create({
data: notam,
});
} catch (error) {
@@ -13,7 +13,7 @@ export const addMessage = async (notam: Prisma.NotamCreateInput) => {
export const disableMessage = async () => {
try {
await prisma.notam.create({
await prisma.config.create({
data: {},
});
} catch (error) {