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