Fix eror build
This commit is contained in:
@@ -23,10 +23,9 @@ export default async function findUnique(
|
||||
|
||||
// ✅ Filter by isActive and deletedAt
|
||||
const data = await prisma.potensiDesa.findFirst({
|
||||
where: {
|
||||
where: {
|
||||
id,
|
||||
isActive: true,
|
||||
deletedAt: null,
|
||||
},
|
||||
include: {
|
||||
image: true,
|
||||
|
||||
@@ -17,7 +17,6 @@ export default async function kategoriPotensiDelete(context: Context) {
|
||||
where: {
|
||||
kategoriId: id,
|
||||
isActive: true,
|
||||
deletedAt: null,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user