chore: remove createdAt in favour of created_at

This commit is contained in:
Mar0xy 2023-09-25 04:30:15 +02:00
parent 6ed28c76fb
commit 035d600406
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
3 changed files with 0 additions and 5 deletions

View File

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

View File

@ -19,7 +19,6 @@ namespace Entity {
content: string content: string
plain_content: string | null plain_content: string | null
created_at: string created_at: string
createdAt?: string
emojis: Emoji[] emojis: Emoji[]
replies_count: number replies_count: number
reblogs_count: number reblogs_count: number

View File

@ -88,7 +88,6 @@ namespace MisskeyAPI {
suspended: null, suspended: null,
limited: null, limited: null,
created_at: u.createdAt ? u.createdAt : '', created_at: u.createdAt ? u.createdAt : '',
createdAt: u.createdAt,
followers_count: 0, followers_count: 0,
following_count: 0, following_count: 0,
statuses_count: 0, statuses_count: 0,
@ -125,7 +124,6 @@ namespace MisskeyAPI {
suspended: null, suspended: null,
limited: null, limited: null,
created_at: u.createdAt, created_at: u.createdAt,
createdAt: u.createdAt,
followers_count: u.followersCount, followers_count: u.followersCount,
following_count: u.followingCount, following_count: u.followingCount,
statuses_count: u.notesCount, statuses_count: u.notesCount,
@ -271,7 +269,6 @@ namespace MisskeyAPI {
: '', : '',
plain_content: n.text ? n.text : null, plain_content: n.text ? n.text : null,
created_at: n.createdAt, created_at: n.createdAt,
createdAt: n.createdAt,
emojis: mapEmojis(n.emojis).concat(mapReactionEmojis(n.reactionEmojis)), emojis: mapEmojis(n.emojis).concat(mapReactionEmojis(n.reactionEmojis)),
replies_count: n.repliesCount, replies_count: n.repliesCount,
reblogs_count: n.renoteCount, reblogs_count: n.renoteCount,