chore: fix inconsistencies with getGuildEventScoreController
All checks were successful
Build / build (pull_request) Successful in 1m5s

bring it more in line with the rest of the codebase
This commit is contained in:
Sainan 2025-08-16 14:49:15 +02:00
parent 62a6042c9c
commit 143e5a5daf
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ export const getGuildEventScoreController: RequestHandler = async (req, res) =>
if (guild && guild.GoalProgress && goalId) {
const goal = guild.GoalProgress.find(x => x.goalId.toString() == goalId);
if (goal) {
return res.json({
res.json({
Tier: guild.Tier,
GoalProgress: {
Count: goal.Count,
@ -19,7 +19,8 @@ export const getGuildEventScoreController: RequestHandler = async (req, res) =>
_id: { $oid: goal.goalId }
}
});
return;
}
}
return res.json({});
res.json({});
};

View File

@ -62,7 +62,7 @@ import { getFriendsController } from "@/src/controllers/api/getFriendsController
import { getGuildContributionsController } from "@/src/controllers/api/getGuildContributionsController";
import { getGuildController } from "@/src/controllers/api/getGuildController";
import { getGuildDojoController } from "@/src/controllers/api/getGuildDojoController";
import { getGuildEventScoreController } from "@/src/controllers/api/getGuildEventScore";
import { getGuildEventScoreController } from "@/src/controllers/api/getGuildEventScoreController";
import { getGuildLogController } from "@/src/controllers/api/getGuildLogController";
import { getIgnoredUsersController } from "@/src/controllers/api/getIgnoredUsersController";
import { getNewRewardSeedController } from "@/src/controllers/api/getNewRewardSeedController";