fix(medusa-plugin-slack-notification): Fixes slackbot (#100)
This commit is contained in:
1 parent
520115a2ce
commit
1c8384c7c3
1 file changed
+3
-2
@@ -6,7 +6,8 @@ class SlackService extends BaseService {
|
|||||||
/**
|
/**
|
||||||
* @param {Object} options - options defined in `medusa-config.js`
|
* @param {Object} options - options defined in `medusa-config.js`
|
||||||
* {
|
* {
|
||||||
* slack_url: "https://hooks.slack.com/services/..."
|
* slack_url: "https://hooks.slack.com/services/...",
|
||||||
|
* admin_orders_url: "https:..../orders"
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
constructor({ orderService, totalsService, regionService }, options) {
|
constructor({ orderService, totalsService, regionService }, options) {
|
||||||
@@ -35,7 +36,7 @@ class SlackService extends BaseService {
|
|||||||
type: "section",
|
type: "section",
|
||||||
text: {
|
text: {
|
||||||
type: "mrkdwn",
|
type: "mrkdwn",
|
||||||
text: `Order *<http://localhost:8000/a/orders/${order._id}|#${order._id}>* has been processed.`,
|
text: `Order *<${this.options_.admin_orders_url}/${order._id}|#${order.display_id}>* has been processed.`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user