Skip to content

Commit b3452c6

Browse files
author
Rajat
committed
CodeQL fixes
1 parent e7b7a2f commit b3452c6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/web/app/(with-contexts)/dashboard/(sidebar)/users/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export default function Page(props: { params: Promise<{ id: string }> }) {
399399
const formActive = basicDetails.active;
400400
const formTags = basicDetails.tags || [];
401401
const userTags = userData.tags || [];
402-
const hasTagsChanged = haveStringArraysChanged(formTags, userTags);
402+
// const hasTagsChanged = haveStringArraysChanged(formTags, userTags);
403403
const hasBasicDetailsChanged =
404404
trimmedFormName !== initialBasicDetailsRef.current.name ||
405405
formActive !== initialBasicDetailsRef.current.active ||

apps/web/graphql/communities/__tests__/logic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe("Community Logic - Comment Count Tests", () => {
211211

212212
it("should include replies in the comment count", async () => {
213213
// Create a comment with replies
214-
const comment = await CommunityCommentModel.create({
214+
await CommunityCommentModel.create({
215215
domain: testDomain._id,
216216
communityId: community.communityId,
217217
postId: post.postId,

apps/web/graphql/users/__tests__/delete-user.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ describe("deleteUser - Comprehensive Test Suite", () => {
423423
pageId: "du-page-comm-123",
424424
});
425425

426-
const moderatorMembership = await MembershipModel.create({
426+
await MembershipModel.create({
427427
domain: testDomain._id,
428428
membershipId: "mem-123",
429429
userId: targetUser.userId,
@@ -1028,7 +1028,7 @@ describe("deleteUser - Comprehensive Test Suite", () => {
10281028
});
10291029

10301030
it("should handle user with subscription cancellation", async () => {
1031-
const membership = await MembershipModel.create({
1031+
await MembershipModel.create({
10321032
domain: testDomain._id,
10331033
membershipId: "mem-123",
10341034
userId: targetUser.userId,

0 commit comments

Comments
 (0)