mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-11 07:27:58 +00:00
fix data type returned by API
This commit is contained in:
parent
2fa52e6a08
commit
56fe8eb6d7
@ -292,9 +292,9 @@ try
|
||||
'title' => $magnet->title,
|
||||
'preview' => $magnet->preview,
|
||||
'description' => $magnet->description,
|
||||
'comments' => $magnet->comments,
|
||||
'sensitive' => $magnet->sensitive,
|
||||
'approved' => $magnet->approved,
|
||||
'comments' => (bool) $magnet->comments,
|
||||
'sensitive' => (bool) $magnet->sensitive,
|
||||
'approved' => (bool) $magnet->approved,
|
||||
'timeAdded' => $magnet->timeAdded,
|
||||
'timeUpdated' => $magnet->timeUpdated,
|
||||
'dn' => $magnet->dn,
|
||||
@ -393,7 +393,7 @@ try
|
||||
'magnetStarId' => $star->magnetStarId,
|
||||
'userId' => $star->userId,
|
||||
'magnetId' => $star->magnetId,
|
||||
'value' => $star->value,
|
||||
'value' => (bool) $star->value,
|
||||
'timeAdded' => $star->timeAdded,
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user