mirror of
https://github.com/Such-Software/medusa-plugin-blog.git
synced 2026-10-17 05:32:06 +02:00
add relations to post query
This commit is contained in:
@@ -85,7 +85,8 @@ export default class BlogService extends TransactionBaseService {
|
||||
/* @ts-ignore */
|
||||
const blogPostRepository = this.activeManager_.withRepository(this.blogPostRepository_)
|
||||
return await blogPostRepository.findOne({
|
||||
where: { id }
|
||||
where: { id },
|
||||
relations: ["category", "tags", "products", "collections"]
|
||||
})
|
||||
}
|
||||
|
||||
@@ -174,4 +175,9 @@ export default class BlogService extends TransactionBaseService {
|
||||
const blogTagRepository = this.activeManager_.withRepository(this.blogTagRepository_)
|
||||
return await blogTagRepository.delete(id)
|
||||
}
|
||||
|
||||
async
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user