fix(create): add missing await (#8831)

This commit is contained in:
Sachin Nanayakkara 2023-03-28 21:58:34 +05:30 committed by GitHub
parent 3f73221286
commit be0ac6c2cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ async function getSiteName(
return true;
}
if (reqName) {
const res = validateSiteName(reqName);
const res = await validateSiteName(reqName);
if (typeof res === 'string') {
throw new Error(res);
}