diff --git a/functions/api/events-team/team-members/user.ts b/functions/api/events-team/team-members/user.ts index 0adcc04..5af9693 100644 --- a/functions/api/events-team/team-members/user.ts +++ b/functions/api/events-team/team-members/user.ts @@ -13,7 +13,7 @@ export async function onRequestDelete(context: RequestContext) { if ( typeof id !== "string" || - id.search(/\D/) || + id.match(/\D/) || id.length > 19 || id.length < 17 )