mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-14 14:26:28 +00:00
Adds no files to register error
This commit is contained in:
@@ -20,6 +20,9 @@ const toHostList = R.chain(data => {
|
||||
|
||||
const registerDomains = async ({ domainService, getDomains }) => {
|
||||
const domains = await getDomains().then(toHostList);
|
||||
|
||||
if (domains.length === 0)
|
||||
return Promise.reject(new Error('Nothing to register'));
|
||||
|
||||
return domainService.updateHosts(domains);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user