This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user