Fix type issue

This commit is contained in:
Owen
2026-07-07 15:21:12 -04:00
parent d9608bd408
commit a8c255ef71
2 changed files with 5 additions and 6 deletions
@@ -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
)
); );
} }