Rooni commited on
Commit
e111936
·
verified ·
1 Parent(s): ce3d2e1

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -11,7 +11,7 @@ app.post('/get', async (req, res) => {
11
  let property = req.body.day;
12
 
13
  if (!sign || !property) {
14
- return res.status(400).json({ error: 'Требуется параметр "prompt".' });
15
  }
16
 
17
  aztroJs.getAllHoroscope(sign, function(res) {
 
11
  let property = req.body.day;
12
 
13
  if (!sign || !property) {
14
+ return res.status(400).json({ error: 'Требуются все параметры!' });
15
  }
16
 
17
  aztroJs.getAllHoroscope(sign, function(res) {