|
|
@ -31,8 +31,8 @@ class VenueService extends SiteService { |
|
|
|
if (!res.locals.site || !res.locals.site.shingChannelSlug) { |
|
|
|
return next(); |
|
|
|
} |
|
|
|
res.locals.shingChannelFeed = await this.getChannelFeed(res.locals.site.shingChannelSlug, { allowCache: false }); |
|
|
|
res.locals.shingChannelStatus = await this.getChannelStatus(res.locals.site.shingChannelSlug, { allowCache: false }); |
|
|
|
res.locals.shingChannelFeed = await this.getChannelFeed(res.locals.site.shingChannelSlug, { allowCache: true }); |
|
|
|
res.locals.shingChannelStatus = await this.getChannelStatus(res.locals.site.shingChannelSlug, { allowCache: true }); |
|
|
|
this.log.debug('channel status', { status: res.locals.shingChannelStatus }); |
|
|
|
return next(); |
|
|
|
} catch (error) { |
|
|
@ -59,7 +59,7 @@ class VenueService extends SiteService { |
|
|
|
agent: this.httpsAgent, |
|
|
|
}); |
|
|
|
if (!response.ok) { |
|
|
|
throw new SiteError(500, 'Failed to fetch Shing channel feed'); |
|
|
|
throw new SiteError(500, `Failed to fetch Shing channel feed: ${response.statusText}`); |
|
|
|
} |
|
|
|
|
|
|
|
json = await response.json(); |
|
|
|