Skip to content

Commit

Permalink
fix: update data
Browse files Browse the repository at this point in the history
  • Loading branch information
rappix committed Feb 5, 2024
1 parent 415d9a2 commit 7ed7e0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ router.get('/asset/transactions', async (req: Request, res: Response) => {
batchGroup: {
select: {
assetId: true,
type: true,
project: {
select: {
id: true
Expand All @@ -186,7 +187,11 @@ router.get('/asset/transactions', async (req: Request, res: Response) => {
const { batchGroup, ...rest } = item;
return {
...rest,
data: batchGroup, // Rename the property to data
info: {
projectId: batchGroup?.project?.id,
assetId: batchGroup?.assetId,
type: batchGroup?.type,
},
};
});

Expand Down

0 comments on commit 7ed7e0a

Please sign in to comment.