Skip to content

Commit

Permalink
adjusting return from get transactions - bringin created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
tgmarinho committed Apr 21, 2020
1 parent 45c70c1 commit a706e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/transactions.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ transactionsRouter.get('/', async (request, response) => {
const transactionsRepositories = getCustomRepository(TransactionsRepository);

const transactions = await transactionsRepositories.find({
select: ['id', 'title', 'value', 'type', 'category'],
select: ['id', 'title', 'value', 'type', 'category', 'created_at'],
relations: ['category'],
});

Expand Down

0 comments on commit a706e71

Please sign in to comment.