fix: createdAt

This commit is contained in:
Mar0xy 2023-09-24 23:56:07 +02:00
parent 8f219557d4
commit 243527b2c8
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 3 additions and 0 deletions

View file

@ -15,6 +15,7 @@ namespace Entity {
suspended: boolean | null
limited: boolean | null
created_at: string
createdAt: string | null
followers_count: number
following_count: number
statuses_count: number

View file

@ -88,6 +88,7 @@ namespace MisskeyAPI {
suspended: null,
limited: null,
created_at: '',
createdAt: new Date().toUTCString(),
followers_count: 0,
following_count: 0,
statuses_count: 0,
@ -124,6 +125,7 @@ namespace MisskeyAPI {
suspended: null,
limited: null,
created_at: u.createdAt ? u.createdAt : new Date().toUTCString(),
createdAt: u.createdAt ? u.createdAt : new Date().toUTCString(),
followers_count: u.followersCount,
following_count: u.followingCount,
statuses_count: u.notesCount,