Fix falsely failing user id check
This commit is contained in:
parent
16617eca72
commit
6f2d91f504
@ -13,7 +13,7 @@ export async function onRequestDelete(context: RequestContext) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
typeof id !== "string" ||
|
typeof id !== "string" ||
|
||||||
id.search(/\D/) ||
|
id.match(/\D/) ||
|
||||||
id.length > 19 ||
|
id.length > 19 ||
|
||||||
id.length < 17
|
id.length < 17
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user