Fix build

This commit is contained in:
Krzysztof Wolski 2023-03-07 22:05:10 +01:00
parent eb9bd700ca
commit 80d54bf456

View file

@ -22,7 +22,7 @@ export const getSendgridSettings = async ({ authData, channel }: GetSendgridSett
const sendgridConfigurations = await caller.sendgridConfiguration.fetch(); const sendgridConfigurations = await caller.sendgridConfiguration.fetch();
const appConfigurations = await caller.appConfiguration.fetch(); const appConfigurations = await caller.appConfiguration.fetch();
const channelAppConfiguration = appConfigurations.configurationsPerChannel[channel]; const channelAppConfiguration = appConfigurations?.configurationsPerChannel[channel];
if (!channelAppConfiguration) { if (!channelAppConfiguration) {
logger.warn("App has no configuration for this channel"); logger.warn("App has no configuration for this channel");
return; return;