Skip to content

Commit

Permalink
Merge pull request #434 from Decatur-Robotics/main
Browse files Browse the repository at this point in the history
Updating CS IA
  • Loading branch information
renatodellosso authored Feb 5, 2025
2 parents 487809a + 2db79c7 commit 36686ed
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export const AuthenticationOptions: AuthOptions = {
],
callbacks: {
async session({ session, user }) {
console.log("Session user:", user);
session.user = await (
await db
).findObjectById(CollectionId.Users, new ObjectId(user.id));
Expand Down
1 change: 0 additions & 1 deletion lib/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export async function repairUser(
} as User;

if (updateDocument) {
console.log("Updating user", user._id);
await db.updateObjectById(
CollectionId.Users,
user._id as unknown as ObjectId,
Expand Down
2 changes: 1 addition & 1 deletion lib/client/ClientUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function promisify<TReturn>(
}

/**
* Tested to be accurate to within 20ms
* Tested to be accurate to within 150ms
*
* @tested_by tests/lib/client/ClientUtils.test.ts
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sj3",
"version": "1.1.17",
"version": "1.1.18",
"private": true,
"repository": "https://github.com/Decatur-Robotics/Gearbox",
"license": "CC BY-NC-SA 4.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/client/ClientUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe(wait.name, () => {

const results = await Promise.all(trials);
for (const result of results) {
expect(result).toBeLessThanOrEqual(20);
expect(result).toBeLessThanOrEqual(150);
}
});
});

0 comments on commit 36686ed

Please sign in to comment.