mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 08:15:41 +00:00
Adds no files to register error
This commit is contained in:
1 parent
8b795762ee
commit
37f9820048
1 file changed
+3
@@ -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