Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetfulskybro committed Oct 2, 2023
2 parents 9607ca9 + 85eab62 commit a412453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/buttons/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ module.exports = {
const customId = interaction.customId.split("_");

const votingResults = await client.voting.getVotingResults(customId[1]);
if (!votingResults) return await interaction.reply({
if (!votingResults)
return await interaction.reply({
content: "Unable to fetch results.",
ephemeral: true,
})

});

const resultEmbed = new EmbedBuilder()
.setImage(votingResults.chart)
Expand Down
2 changes: 1 addition & 1 deletion src/util/votingHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = class Voting {
async getVoting(id) {
if (!this._cache.get(id))
return await voteSchema.findOne({
id: id
id: id,
});

return this._cache.get(id);
Expand Down

0 comments on commit a412453

Please sign in to comment.