mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-24 11:18:48 +02:00
Fix type issue
This commit is contained in:
@@ -161,7 +161,8 @@ const createSiteResourceSchema = z
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
data.destination !== undefined && data.destination.trim() !== ""
|
data.destination !== undefined &&
|
||||||
|
data.destination?.trim() !== ""
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -157,7 +157,8 @@ const updateSiteResourceSchema = z
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
data.destination !== undefined && data.destination.trim() !== ""
|
data.destination !== undefined &&
|
||||||
|
data.destination?.trim() !== ""
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -616,10 +617,7 @@ export async function updateSiteResource(
|
|||||||
await trx
|
await trx
|
||||||
.delete(roleSiteResources)
|
.delete(roleSiteResources)
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(roleSiteResources.siteResourceId, siteResourceId)
|
||||||
roleSiteResources.siteResourceId,
|
|
||||||
siteResourceId
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user