mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use ISOString
to create new posts
This commit is contained in:
parent
ab8eaa0dbe
commit
6c18614599
@ -8,7 +8,7 @@ export default async (payload) => {
|
|||||||
user_id: typeof user_id === "object" ? user_id.toString() : user_id,
|
user_id: typeof user_id === "object" ? user_id.toString() : user_id,
|
||||||
message: String(message).toString(),
|
message: String(message).toString(),
|
||||||
additions: additions ?? [],
|
additions: additions ?? [],
|
||||||
created_at: new Date().getTime(),
|
created_at: new Date().toISOString(),
|
||||||
type: type,
|
type: type,
|
||||||
data: data,
|
data: data,
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
user_id: { type: String, required: true },
|
user_id: { type: String, required: true },
|
||||||
created_at: { type: Number, required: true },
|
created_at: { type: String, required: true },
|
||||||
message: { type: String, required: true },
|
message: { type: String, required: true },
|
||||||
likes: { type: Array, default: [] },
|
likes: { type: Array, default: [] },
|
||||||
additions: { type: Array, default: [] },
|
additions: { type: Array, default: [] },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user