Skip to content

Commit c66e71d

Browse files
committed
Update get_actions.ts
1 parent 7f15648 commit c66e71d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

api/routes/v2-history/get_actions/get_actions.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ async function getActions(fastify: FastifyInstance, request: FastifyRequest) {
7878
const actions = results['hits'];
7979
for (let action of actions) {
8080
action = action._source;
81+
82+
if (action.act.data.account && action.act.data.name && action.act.data.authorization) {
83+
action.act.data = action.act.data.data;
84+
}
85+
8186
mergeActionMeta(action);
8287

8388
if (query.noBinary === true) {
@@ -90,10 +95,6 @@ async function getActions(fastify: FastifyInstance, request: FastifyRequest) {
9095
}
9196
}
9297

93-
if (action.act.data.account && action.act.data.name && action.act.data.authorization) {
94-
action.act.data = action.act.data.data;
95-
}
96-
9798
if (query.simple) {
9899
response.simple_actions.push({
99100
block: action['block_num'],

0 commit comments

Comments
 (0)