Skip to content

Commit

Permalink
fix: review comments, moved appEvents declaration
Browse files Browse the repository at this point in the history
Signed-off-by: vishalmalu <vishal.malu@gmail.com>
  • Loading branch information
vishalmalu committed Oct 4, 2022
1 parent 7092157 commit fa4763e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/api-plugin-tags/src/mutations/removeTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import ReactionError from "@reactioncommerce/reaction-error";
*/
export default async function removeTag(context, input) {
const { shopId, tagId } = input;
const { Tags } = context.collections;
const { appEvents } = context;
const { appEvents, collections: { Tags } } = context;

await context.validatePermissions(`reaction:legacy:tags:${tagId}`, "delete", { shopId });

Expand Down

0 comments on commit fa4763e

Please sign in to comment.