|
@@ -53,7 +53,7 @@ export class WebService {
|
|
|
async findArticleDetail(id: number, locale?: string) {
|
|
|
const lang = this.sharedService.handleValidLang(locale);
|
|
|
const article = await this.articleRepo.findOne({
|
|
|
- where: { id },
|
|
|
+ where: { id, enable: true },
|
|
|
relations: { user: true, translations: true, category: true },
|
|
|
select: {
|
|
|
user: {
|