improve timestamp processing

This commit is contained in:
SrGooglo 2025-01-25 19:48:46 +00:00
parent 99ee66ddb7
commit f35a3e7dbd
2 changed files with 2 additions and 3 deletions

View File

@ -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)) {

View File

@ -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