Skip to content

Commit 093fc7e

Browse files
committed
feat: add logging to LiveItemService update method for better traceability
1 parent 3ca82bf commit 093fc7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/liveItem/liveItem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ export class LiveItemService extends BaseOneService<LiveItem, 'item'> {
1717
}
1818

1919
async update(item: Item, dto: LiveItemDto): Promise<LiveItem> {
20+
console.log('LiveItemService.update called with item.id:', item.id);
21+
console.log('LiveItemService.update called with dto:', dto);
2022
const finalDto = {
2123
...dto,
2224
live_item_status_id: dto.live_item_status
2325
};
26+
console.log('LiveItemService.update finalDto:', finalDto);
2427
return super._update(item, finalDto, { relations: ['live_item_status'] });
2528
}
2629

0 commit comments

Comments
 (0)