mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +00:00
chore: add sort linting (#169)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {WebClient} from '@slack/web-api';
|
||||
import {Config} from '../config';
|
||||
import {Logger} from '../logger';
|
||||
import {WebClient} from '@slack/web-api';
|
||||
|
||||
const channel = Config.notifications.slack.channel;
|
||||
const token = Config.notifications.slack.token;
|
||||
@@ -9,7 +9,7 @@ const web = new WebClient(token);
|
||||
export function sendSlackMessage(cartUrl: string) {
|
||||
(async () => {
|
||||
try {
|
||||
const result = await web.chat.postMessage({text: cartUrl, channel});
|
||||
const result = await web.chat.postMessage({channel, text: cartUrl});
|
||||
if (!result.ok) {
|
||||
Logger.error(result.error);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user