This commit is contained in:
parent
04dda00b7f
commit
e7b2594e2c
@ -23,7 +23,7 @@ export async function GET(request: NextRequest) {
|
|||||||
if (shouldCreatePlayer && foundPlayer == null) {
|
if (shouldCreatePlayer && foundPlayer == null) {
|
||||||
foundPlayer = await PlayerModel.create({
|
foundPlayer = await PlayerModel.create({
|
||||||
_id: id,
|
_id: id,
|
||||||
trackedSince: new Date(),
|
trackedSince: new Date().toISOString(),
|
||||||
});
|
});
|
||||||
const response = await scoresaberService.lookupPlayer(id, true);
|
const response = await scoresaberService.lookupPlayer(id, true);
|
||||||
if (response != undefined) {
|
if (response != undefined) {
|
||||||
|
@ -34,7 +34,7 @@ export default function PlayerTrackedStatus({ player }: Props) {
|
|||||||
display={
|
display={
|
||||||
<div className="flex flex-col justify-center items-center">
|
<div className="flex flex-col justify-center items-center">
|
||||||
<p>This player is having their statistics tracked!</p>
|
<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>
|
</div>
|
||||||
}
|
}
|
||||||
side="bottom"
|
side="bottom"
|
||||||
|
Reference in New Issue
Block a user