Merge branch 'nico/push-stg' into nico/30-jun-2025

This commit is contained in:
2025-06-30 11:15:06 +08:00
committed by GitHub
4 changed files with 2 additions and 3 deletions

View File

@@ -75,7 +75,6 @@ const persentasekelahiran = proxy({
} }
}, },
}, },
findUnique: { findUnique: {
data: null as Prisma.DataKematian_KelahiranGetPayload<{ data: null as Prisma.DataKematian_KelahiranGetPayload<{
omit: { isActive: true }; omit: { isActive: true };
@@ -168,7 +167,6 @@ update: {
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
}); });
const result = await response.json(); const result = await response.json();
if (response.ok && result?.success) { if (response.ok && result?.success) {

View File

@@ -52,7 +52,6 @@ const handleSubmit = async () => {
toast.error('Gagal memperbarui data'); toast.error('Gagal memperbarui data');
} }
}; };
return ( return (
<Box> <Box>
<Box mb={10}> <Box mb={10}>

View File

@@ -2,6 +2,7 @@ import prisma from "@/lib/prisma";
import { Context } from "elysia"; import { Context } from "elysia";
export default async function grafikKepuasanDelete(context: Context) { export default async function grafikKepuasanDelete(context: Context) {
const id = context.params?.id; const id = context.params?.id;
if (!id) { if (!id) {

View File

@@ -3,6 +3,7 @@ import prisma from "@/lib/prisma";
export default async function grafikKepuasanFindUnique(request: Request) { export default async function grafikKepuasanFindUnique(request: Request) {
const url = new URL(request.url); const url = new URL(request.url);
const pathSegments = url.pathname.split('/'); const pathSegments = url.pathname.split('/');
const id = pathSegments[pathSegments.length - 1]; const id = pathSegments[pathSegments.length - 1];
if (!id) { if (!id) {