Skip to content

Commit a57b8ff

Browse files
committed
chore(shared-shipping): cải tiến logging cho việc lấy địa chỉ của shop
- Cải tiến thông báo log khi không có địa chỉ mặc định cho shop, giúp theo dõi quá trình lấy địa chỉ đầu tiên dễ dàng hơn.
1 parent bae1493 commit a57b8ff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/shared/repositories/shared-shipping.repo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export class SharedShippingRepository {
241241

242242
// Nếu không có default address, lấy address đầu tiên
243243
if (!shopUserAddress) {
244-
this.logger.warn(`[SHARED_SHIPPING] Shop không có default address, thử lấy address đầu tiên cho shop: ${shopId}`)
244+
this.logger.warn(
245+
`[SHARED_SHIPPING] Shop không có default address, thử lấy address đầu tiên cho shop: ${shopId}`
246+
)
245247
shopUserAddress = await this.prismaService.userAddress.findFirst({
246248
where: { userId: shopId },
247249
include: { address: true }

0 commit comments

Comments
 (0)