fix tracked since
All checks were successful
Deploy / deploy (push) Successful in 3m2s

This commit is contained in:
Lee 2024-09-28 14:59:30 +01:00
parent 04dda00b7f
commit e7b2594e2c
2 changed files with 2 additions and 2 deletions

@ -23,7 +23,7 @@ export async function GET(request: NextRequest) {
if (shouldCreatePlayer && foundPlayer == null) {
foundPlayer = await PlayerModel.create({
_id: id,
trackedSince: new Date(),
trackedSince: new Date().toISOString(),
});
const response = await scoresaberService.lookupPlayer(id, true);
if (response != undefined) {

@ -34,7 +34,7 @@ export default function PlayerTrackedStatus({ player }: Props) {
display={
<div className="flex flex-col justify-center items-center">
<p>This player is having their statistics tracked!</p>
<p>Tracked Since: {format(data.trackedSince!)}</p>
<p>Tracked Since: {format(new Date(data.trackedSince!))}</p>
</div>
}
side="bottom"