Shortened return to avoid variable memory asignment
This commit is contained in:
parent
c2a50a1480
commit
f7eae96b8c
|
@ -285,10 +285,8 @@ fastify.after(() => {
|
|||
|
||||
//Get all visits api route
|
||||
fastify.get('/api/visits', { onRequest: fastify.auth([fastify.basicAuth, fastify.verifyJWT]) }, async (req, res) => {
|
||||
const visits = await knex.select('shortcode', 'provider', 'timestamp')
|
||||
return await knex.select('shortcode', 'provider', 'timestamp')
|
||||
.from('visits');
|
||||
|
||||
return visits;
|
||||
});
|
||||
|
||||
//Get url api route
|
||||
|
|
Loading…
Reference in New Issue