fixed issue

This commit is contained in:
Andreas 2024-07-18 15:48:05 +02:00
parent 4a4813ae17
commit e0377aeb00

View File

@ -38,9 +38,9 @@ export async function getPostsWithBucketsAndProject(): Promise<ActionResult<GetP
{association: Post.associations.project}], {association: Post.associations.project}],
nest: false nest: false
}); });
return {result:JSON.parse(JSON.stringify(posts.map((e:Post)=>{ return {result:posts.map((post:Post)=>{
return inspect(e) return JSON.parse(JSON.stringify(post))
})))}; })};
} }
export async function getPosts(): Promise<ActionResult<Attributes<Post>[]>> { export async function getPosts(): Promise<ActionResult<Attributes<Post>[]>> {