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