1
0
mirror of https://github.com/uetchy/namae.git synced 2025-08-21 02:08:12 +09:00

fix: whois provider

This commit is contained in:
2020-02-08 19:43:22 +09:00
parent 71b74d4529
commit 3e6c678c46
6 changed files with 13 additions and 11 deletions

View File

@@ -16,9 +16,6 @@ export default async function handler(
const availability = response[0].data.domainName ? false : true;
send(res, {availability});
} catch (err) {
if (err.code === 'ENOTFOUND') {
return send(res, {availability: true});
}
sendError(res, err);
}
}