Skip to content

Commit

Permalink
fix(Commands): Fix vote & fav error logging throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
3urobeat committed Mar 8, 2024
1 parent cf2bc44 commit 9acd1cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/commands/core/favorite.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created Date: 2023-06-02 13:23:01
* Author: 3urobeat
*
* Last Modified: 2024-02-21 21:23:47
* Last Modified: 2024-03-08 19:20:53
* Modified By: 3urobeat
*
* Copyright (c) 2023 - 2024 3urobeat <https://github.com/3urobeat>
Expand Down Expand Up @@ -169,7 +169,7 @@ module.exports.favorite = {

/* --------- Handle errors thrown by this favorite attempt or update ratingHistory db and log success message --------- */
if (error) {
logFavoriteError(error, commandHandler, bot, sharedfile.id);
logFavoriteError(error, commandHandler, bot, id);

} else {

Expand Down Expand Up @@ -367,7 +367,7 @@ module.exports.unfavorite = {

/* --------- Handle errors thrown by this unfavorite attempt or update ratingHistory db and log success message --------- */
if (error) {
logFavoriteError(error, commandHandler, bot, sharedfile.id);
logFavoriteError(error, commandHandler, bot, id);

} else {

Expand Down
4 changes: 2 additions & 2 deletions src/commands/core/vote.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created Date: 2023-05-28 12:02:24
* Author: 3urobeat
*
* Last Modified: 2024-02-27 22:00:43
* Last Modified: 2024-03-08 18:36:55
* Modified By: 3urobeat
*
* Copyright (c) 2023 - 2024 3urobeat <https://github.com/3urobeat>
Expand Down Expand Up @@ -218,7 +218,7 @@ async function processVoteRequest(origin, commandHandler, args, respondModule, c

/* --------- Handle errors thrown by this vote attempt or update ratingHistory db and log success message --------- */
if (error) {
logVoteError(error, commandHandler, bot, voteArgs.id);
logVoteError(error, commandHandler, bot, id);

} else {

Expand Down
4 changes: 2 additions & 2 deletions src/data/fileStructure.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
{
"path": "src/commands/core/favorite.js",
"url": "https://raw.githubusercontent.com/3urobeat/steam-comment-service-bot/beta-testing/src/commands/core/favorite.js",
"checksum": "9d4660400dd151196fa2b39d0ce353b6"
"checksum": "9dc47165909fdf357c25ba775129e74a"
},
{
"path": "src/commands/core/follow.js",
Expand Down Expand Up @@ -438,7 +438,7 @@
{
"path": "src/commands/core/vote.js",
"url": "https://raw.githubusercontent.com/3urobeat/steam-comment-service-bot/beta-testing/src/commands/core/vote.js",
"checksum": "5c856ea5d20db8355061a2c277178bea"
"checksum": "f69c2827cc333b67d34075a14d8b40e4"
},
{
"path": "src/commands/helpers/getCommentArgs.js",
Expand Down

0 comments on commit 9acd1cc

Please sign in to comment.