Skip to content

Commit

Permalink
fix(rabbitmq): Fix status update
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Dec 10, 2019
1 parent 63387ff commit 249e904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/services/RabbitMq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class RabbitMqService {
cmd: ShardCommand.STATUS,
connected: this.client.gatewayConnected,
gateway: this.client.gatewayInfo,
gatewayLastUpdate: this.client.gatewayInfoCachedAt.toISOString(),
gatewayLastUpdate: this.client.gatewayInfoCachedAt ? this.client.gatewayInfoCachedAt.toISOString() : null,
guilds: this.client.guilds.size,
error: err ? err.message : null,
tracking: {
Expand Down

0 comments on commit 249e904

Please sign in to comment.