Skip to content

Commit

Permalink
Fix bug wrong queueName on initAMQPActions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tai NA committed Apr 16, 2021
1 parent 085b7dc commit 84bf8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const initAMQPActions = function (schema) {
};
}

const queueName = `amqp.${schema.version ? `v${schema.version}.` : ""}${schema.name}.${actionName}`;
schema.actions[`${actionName}.async`] = {
timeout: 10000,
retryPolicy: {
Expand All @@ -153,7 +154,6 @@ const initAMQPActions = function (schema) {
},
params: asyncParams,
async handler(ctx) {
const queueName = `amqp.${ctx.params.action}`;
const dedupeHash = Deep(this.$amqpOptions, [queueName, "options", "dedupHash"]);
const headers = ctx.headers || {};
if (typeof dedupeHash === "number" || typeof dedupeHash === "string") {
Expand Down

0 comments on commit 84bf8c8

Please sign in to comment.