Skip to content

Instantly share code, notes, and snippets.

@woodyalan
Created September 1, 2017 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodyalan/d74875798f25bab43dc2963a887a7748 to your computer and use it in GitHub Desktop.
Save woodyalan/d74875798f25bab43dc2963a887a7748 to your computer and use it in GitHub Desktop.
C:\Users\i8761\Projects\nodejs\webadmin-api\routes\processoSeletivo.js:8
router.post('/contatoProcesso', async (req,res,next) => {
^
SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\i8761\Projects\nodejs\webadmin-api\app.js:11:26)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
@jurasseck
Copy link

router.post('/contatoProcesso', async (req,res,next) => {
    const contato = await processoSeletivo.isContato(req.body.email);
    const processo = await processoSeletivo.hasProcesso();

    console.log(contato.get());
    console.log(processo[0]);

    res.json(processo[0]);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment