Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess2772 committed Dec 21, 2023
1 parent 81aec28 commit 5dd5026
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/typescript/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,18 @@ app.get("/authUsers", async (req, res) => {
app.get("/addMemberUids", async (req, res) => {
const { term, teams } = memberData;
const updatedData = await matchingService.linkMemberUids(term);
const updatedMembers = {
const {updatedMembers, duplicateUsers} = updatedData;

Check failure on line 124 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Replace `updatedMembers,·duplicateUsers` with `·updatedMembers,·duplicateUsers·`

Check warning on line 124 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

'updatedMembers' is assigned a value but never used

Check failure on line 125 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Delete `··`
const members = {
term: term,

Check failure on line 127 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Expected property shorthand
teams: teams,

Check failure on line 128 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Expected property shorthand
members: updatedData.updatedMembers,
};
const duplicateUsers = updatedData.duplicateUsers;

fs.writeFileSync('./graphql/sampleData/members.json', JSON.stringify(updatedMembers));
fs.writeFileSync('./graphql/sampleData/members.json', JSON.stringify(members));

Check failure on line 132 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Replace `'./graphql/sampleData/members.json',·JSON.stringify(members)` with `⏎····"./graphql/sampleData/members.json",⏎····JSON.stringify(members),⏎··`
res.status(200).json({
message: "Successfully added uids for current blueprint members, and resolved duplicates.",

Check failure on line 134 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Insert `⏎·····`
data: duplicateUsers
data: duplicateUsers,
});
});

Expand Down

0 comments on commit 5dd5026

Please sign in to comment.