Add async suffix

This commit is contained in:
Steve Klebanoff
2019-01-04 08:54:44 -08:00
parent 9131ca1562
commit 442de09bbe
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import { constants } from './constants';
import { Package, PackageToNextVersion, VersionChangelog } from './types';
import { changelogUtils } from './utils/changelog_utils';
import { configs } from './utils/configs';
import { alertDiscord } from './utils/discord';
import { alertDiscordAsync } from './utils/discord';
import { DocGenerateAndUploadUtils } from './utils/doc_generate_and_upload_utils';
import { publishReleaseNotesAsync } from './utils/github_release_utils';
import { utils } from './utils/utils';
@@ -90,7 +90,7 @@ async function confirmAsync(message: string): Promise<void> {
if (!isDryRun && releaseNotes) {
try {
await alertDiscord(releaseNotes);
await alertDiscordAsync(releaseNotes);
} catch (e) {
utils.log("Couldn't alert discord, error: ", e.message, '. Please alert manually.');
}

View File

@@ -4,7 +4,7 @@ import { constants } from '../constants';
import { utils } from './utils';
export const alertDiscord = async (releaseNotes: string): Promise<boolean> => {
export const alertDiscordAsync = async (releaseNotes: string): Promise<boolean> => {
const webhookUrl = constants.discordAlertWebhookUrl;
if (!webhookUrl) {
utils.log('Not alerting to discord because webhook url not set');