Skip to content

Commit

Permalink
#2653 Fixed dungeon routes serialization not including the time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wotuu committed Dec 30, 2024
1 parent bc797b4 commit 2f428a7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/Models/AffixGroup/AffixGroupEaseTierPull.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AffixGroupEaseTierPull extends CacheModel
];

protected $casts = [
'last_updated_at' => 'date',
'last_updated_at' => 'datetime',
];

public function affixGroup(): BelongsTo
Expand Down
12 changes: 6 additions & 6 deletions app/Models/DungeonRoute/DungeonRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ class DungeonRoute extends Model implements TracksPageViewInterface
];

protected $casts = [
'thumbnail_refresh_queued_at' => 'date',
'thumbnail_updated_at' => 'date',
'published_at' => 'date',
'expires_at' => 'date',
'created_at' => 'date',
'updated_at' => 'date',
'thumbnail_refresh_queued_at' => 'datetime',
'thumbnail_updated_at' => 'datetime',
'published_at' => 'datetime',
'expires_at' => 'datetime',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'enemy_forces' => 'integer',
'demo' => 'integer',
'level_min' => 'integer',
Expand Down
6 changes: 3 additions & 3 deletions app/Models/Expansion.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class Expansion extends CacheModel
];

// protected $casts = [
// 'released_at' => 'date',
// 'created_at' => 'date',
// 'updated_at' => 'date',
// 'released_at' => 'datetime',
// 'created_at' => 'datetime',
// 'updated_at' => 'datetime',
// ];

public const EXPANSION_CLASSIC = 'classic';
Expand Down
1 change: 1 addition & 0 deletions app/Models/Mapping/MappingVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* @property string|null $mdt_mapping_hash
* @property bool $facade_enabled True if this mapping version uses facades, false if it does not.
* @property bool $merged Not saved in the database
*
* @property Carbon $updated_at
* @property Carbon $created_at
*
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Season.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Season extends CacheModel
protected $appends = ['name', 'name_long'];

protected $casts = [
'start' => 'date',
'start' => 'datetime',
'key_level_min' => 'integer',
'key_level_max' => 'integer',
];
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Spell/Spell.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Spell extends CacheModel implements MappingModelInterface
'duration' => 'integer',
'selectable' => 'boolean',
'hidden_on_map' => 'boolean',
'fetched_data_at' => 'date',
'fetched_data_at' => 'datetime',
];

public function setFetchedDataAtAttribute($value): void
Expand Down

0 comments on commit 2f428a7

Please sign in to comment.