mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
improve timestamp processing
This commit is contained in:
parent
99ee66ddb7
commit
f35a3e7dbd
@ -34,6 +34,8 @@ export default async (payload = {}) => {
|
|||||||
|
|
||||||
if (!timestamp) {
|
if (!timestamp) {
|
||||||
timestamp = DateTime.local().toISO()
|
timestamp = DateTime.local().toISO()
|
||||||
|
} else {
|
||||||
|
timestamp = DateTime.fromISO(timestamp).toISO()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Array.isArray(poll_options)) {
|
if (Array.isArray(poll_options)) {
|
||||||
|
@ -7,13 +7,10 @@ export default async (payload = {}) => {
|
|||||||
limit,
|
limit,
|
||||||
} = payload
|
} = payload
|
||||||
|
|
||||||
let query = {}
|
|
||||||
|
|
||||||
const posts = await GetPostData({
|
const posts = await GetPostData({
|
||||||
for_user_id: user_id,
|
for_user_id: user_id,
|
||||||
trim,
|
trim,
|
||||||
limit,
|
limit,
|
||||||
query: query,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return posts
|
return posts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user