mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
fix: Fixed API Token "Created On" date (#1909)
* exposed created_at on token schema * fixed token createdAt reference * made created_at optional for compatibility
This commit is contained in:
parent
bd2bad29a8
commit
19ae89a195
@ -51,7 +51,7 @@
|
|||||||
<v-list-item-title>
|
<v-list-item-title>
|
||||||
{{ token.name }}
|
{{ token.name }}
|
||||||
</v-list-item-title>
|
</v-list-item-title>
|
||||||
<v-list-item-subtitle> Created on: {{ $d(token.created_at) }} </v-list-item-subtitle>
|
<v-list-item-subtitle> Created on: {{ $d(new Date(token.createdAt+"Z")) }} </v-list-item-subtitle>
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
<v-list-item-action>
|
<v-list-item-action>
|
||||||
<BaseButton delete small @click="deleteToken(token.id)"></BaseButton>
|
<BaseButton delete small @click="deleteToken(token.id)"></BaseButton>
|
||||||
|
@ -29,6 +29,7 @@ class LongLiveTokenOut(MealieModel):
|
|||||||
token: str
|
token: str
|
||||||
name: str
|
name: str
|
||||||
id: int
|
id: int
|
||||||
|
created_at: datetime | None
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user