This commit is contained in:
@@ -113,7 +113,7 @@ export class ShopService {
|
||||
}
|
||||
|
||||
async findBySlug(slug: string): Promise<Shop> {
|
||||
const shop = await this.em.findOne(Shop, { slug });
|
||||
const shop = await this.em.findOne(Shop, { slug }, { populate: ['configs'] });
|
||||
|
||||
if (!shop) {
|
||||
throw new NotFoundException(ShopMessage.NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user