Skip to content

Commit

Permalink
Add entry to prepareResponseAsync (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsitnikov authored Jul 9, 2024
1 parent f5267ca commit 58c9680
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/response-presenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export async function prepareResponseAsync({data}: {data: any}): Promise<ST.Serv
if (response.chart) {
response.chart = await Utils.macrotasksEncodeData(response.chart);
}
if (response.entry) {
response.entry = await Utils.macrotasksEncodeData(response.entry);
}

return {
code: 200,
Expand Down

0 comments on commit 58c9680

Please sign in to comment.