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

This commit is contained in:
Sachin Nanayakkara 2023-03-28 21:58:34 +05:30 committed by sebastienlorber
parent 4fb67ef11b
commit b6d52621db

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);
}