Repository for the Bootcamp 23.1 challenge
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
482 B

// DEBUG... COMENTAR DEPOIS
_log.info('service called...');
const dbAstros = _db.query(`
SELECT *
FROM astro
WHERE active = true
`);
const astros = _val.list();
for (const astro of dbAstros) {
astros.add(
_val.map()
.set('id', astro.getString('uid'))
.set('name', astro.getString('name'))
)
}
// DEBUG...COMENTAR DEPOIS!
_log.info( 'DB return...', astros );
_out.json(astros)
// DEBUG...COMENTAR DEPOIS!
_log.info('service ended!');