Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
});
});
Loading