Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Feb 5, 2025
1 parent 83f63db commit 487809a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions lib/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ export const AuthenticationOptions: AuthOptions = {
) {
// We use user.id since user._id strangely doesn't exist on user.
await getDatabase().then((db) =>
db.updateObjectById(CollectionId.Users, new ObjectId(typedUser._id?.toString()), {
lastSignInDateTime: today,
}),
db.updateObjectById(
CollectionId.Users,
new ObjectId(typedUser._id?.toString()),
{
lastSignInDateTime: today,
},
),
);
}

Expand Down
4 changes: 3 additions & 1 deletion pages/dev/useranalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default function UserAnalytics() {
for (const date of teams[team]) {
date.date = new Date(date.date);
}
teams[team] = teams[team].sort((a, b) => a.date.getTime() - b.date.getTime());
teams[team] = teams[team].sort(
(a, b) => a.date.getTime() - b.date.getTime(),
);
}

setSignInDates(teams);
Expand Down

0 comments on commit 487809a

Please sign in to comment.