2 Commits
2.2.0 ... 2.2.1

Author SHA1 Message Date
Sonny
2fda4aabdd chore: release v2.2.1 2024-10-07 02:48:47 +02:00
Sonny
bc376a72ee fix: error on admin dashboard when user "last seen" is null 2024-10-07 02:48:32 +02:00
2 changed files with 5 additions and 4 deletions

View File

@@ -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),
}); });

View File

@@ -1,6 +1,6 @@
{ {
"name": "my-links", "name": "my-links",
"version": "2.2.0", "version": "2.2.1",
"type": "module", "type": "module",
"license": "UNLICENSED", "license": "UNLICENSED",
"scripts": { "scripts": {