mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
fix: error on admin dashboard when user "last seen" is null
This commit is contained in:
@@ -14,9 +14,10 @@ class UserWithRelationCountDto {
|
|||||||
fullname: this.user.name,
|
fullname: this.user.name,
|
||||||
avatarUrl: this.user.avatarUrl,
|
avatarUrl: this.user.avatarUrl,
|
||||||
isAdmin: this.user.isAdmin,
|
isAdmin: this.user.isAdmin,
|
||||||
createdAt: this.user.createdAt,
|
createdAt: this.user.createdAt.toString(),
|
||||||
updatedAt: this.user.updatedAt,
|
updatedAt: this.user.updatedAt.toString(),
|
||||||
lastSeenAt: this.user.lastSeenAt,
|
lastSeenAt:
|
||||||
|
this.user.lastSeenAt?.toString() ?? this.user.updatedAt.toString(),
|
||||||
linksCount: Number(this.user.$extras.totalLinks),
|
linksCount: Number(this.user.$extras.totalLinks),
|
||||||
collectionsCount: Number(this.user.$extras.totalCollections),
|
collectionsCount: Number(this.user.$extras.totalCollections),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user