Skip to content

Commit

Permalink
chore: remove feature flag for /discord-actions/nicknames/sync API
Browse files Browse the repository at this point in the history
  • Loading branch information
samarpan1738 committed Sep 18, 2024
1 parent 14ca890 commit c6703da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions controllers/discordactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,6 @@ const setRoleIdle7DToIdleUsers = async (req, res) => {

const updateDiscordNicknames = async (req, res) => {
try {
const { dev } = req.query;
if (dev !== "true") {
return res.status(404).json({
message: "Users Nicknames not updated",
});
}

const membersInDiscord = await getDiscordMembers();
const usersInDB = await fetchAllUsers();
const usersToBeEffected = [];
Expand Down
2 changes: 1 addition & 1 deletion test/integration/discordactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ describe("Discord actions", function () {
);
chai
.request(app)
.post(`/discord-actions/nicknames/sync?dev=true`)
.post(`/discord-actions/nicknames/sync`)
.set("cookie", `${cookieName}=${superUserAuthToken}`)
.end((err, res) => {
if (err) {
Expand Down

0 comments on commit c6703da

Please sign in to comment.