chore: add sort linting (#169)

This commit is contained in:
Jef LeCompte
2020-09-22 19:31:49 -04:00
committed by GitHub
parent 6409646d57
commit cf0eac2b23
34 changed files with 300 additions and 171 deletions
+2 -2
View File
@@ -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;