mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Update dates to ISO
This commit is contained in:
parent
0d373b8866
commit
25d7a798ae
|
|
@ -28,7 +28,7 @@ export const createFromObject = async (object: LysandObjectType) => {
|
||||||
return await client.lysandObject.create({
|
return await client.lysandObject.create({
|
||||||
data: {
|
data: {
|
||||||
authorId: author?.id,
|
authorId: author?.id,
|
||||||
created_at: new Date(object.created_at),
|
created_at: new Date(object.created_at).toISOString(),
|
||||||
extensions: object.extensions || {},
|
extensions: object.extensions || {},
|
||||||
remote_id: object.id,
|
remote_id: object.id,
|
||||||
type: object.type,
|
type: object.type,
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,6 @@ export default apiRoute<{
|
||||||
access_token: token.access_token,
|
access_token: token.access_token,
|
||||||
token_type: token.token_type,
|
token_type: token.token_type,
|
||||||
scope: token.scope,
|
scope: token.scope,
|
||||||
created_at: token.created_at,
|
created_at: new Date(token.created_at).toISOString(),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue