Skip to content

Commit

Permalink
βœ” await Plz πŸ˜₯
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Oct 14, 2023
1 parent 092088b commit 1c903ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api/gateways/socket-io.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class SocketIoGateway implements OnGatewayInit, OnGatewayConnection, OnGa
async pingPong(client: Socket, payload: PayloadModel): Promise<PingPongModel> {
this.gs.log('[SOCKET_IO_PING_PONG] PID :: WID 🌟', `${process.pid} :: ${cluster.worker?.id || 0}`);
return {
github: this.cfgGithubGet(),
github: await this.cfgGithubGet(),
visitor: (await this.sis.getAllClientsSocket()).length,
server: await this.cfgServerGet()
};
Expand Down
11 changes: 10 additions & 1 deletion src/api/services/discord.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,16 @@ export class DiscordService {
const res_raw = await this.api.getData(url, environment.nodeJsXhrHeader);
if (res_raw.ok) {
const gh: any = await res_raw.json();
await this.cfgGithubSet(gh[0]);
const data = {
sha: gh[0]?.sha,
commit: {
author: {
date: gh[0]?.commit?.author?.date
},
message: gh[0]?.commit?.message
}
};
await this.cfgGithubSet(data);
const botGuild = this.bot ? this.bot.guilds.cache.get(environment.discord.guild_id) : null;
if (botGuild) {
const botMember = botGuild.members.cache.get(this.bot.user.id);
Expand Down

0 comments on commit 1c903ce

Please sign in to comment.