fix(api): inconsistent default message on domain name error
parent
7288146649
commit
669ee55788
|
@ -34,7 +34,7 @@ export default async (req, res) => {
|
||||||
const { id, type, start_at, end_at, domain, url } = req.query;
|
const { id, type, start_at, end_at, domain, url } = req.query;
|
||||||
|
|
||||||
if (domain && !DOMAIN_REGEX.test(domain)) {
|
if (domain && !DOMAIN_REGEX.test(domain)) {
|
||||||
return badRequest(res, 'error.bad-domain\tInvalid domain name - please check settings');
|
return badRequest(res, 'error.bad-domain\tInvalid domain name. Please check settings.');
|
||||||
}
|
}
|
||||||
|
|
||||||
const websiteId = +id;
|
const websiteId = +id;
|
||||||
|
|
Loading…
Reference in New Issue