Skip to content

Commit

Permalink
Add missing ctx.meta.$location to avoid Moleculer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
srosset81 committed Jul 2, 2024
1 parent b5ef412 commit 5e097bf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ const ApiService = {
Location: activity.id || activity['@id'],
'Content-Length': 0
};
// We need to set this also here (in addition to above) or we get a Moleculer warning
ctx.meta.$location = activity.id || activity['@id'];
ctx.meta.$statusCode = 201;
}
},
Expand Down

0 comments on commit 5e097bf

Please sign in to comment.