This commit is contained in:
parent
04dda00b7f
commit
e7b2594e2c
@ -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"
|
||||
|
Reference in New Issue
Block a user