690327:1118 Fixing Refactor ADR-019 Naming convention uuid #14
CI / CD Pipeline / build (push) Successful in 5m40s
CI / CD Pipeline / deploy (push) Failing after 7m13s

This commit is contained in:
2026-03-27 11:18:04 +07:00
parent 63d906a02a
commit 2eab2e73d6
15 changed files with 319 additions and 201 deletions
@@ -96,6 +96,12 @@ export class CirculationService {
async findAll(searchDto: SearchCirculationDto, user: User) {
const { status, correspondencePublicId, page = 1, limit = 20 } = searchDto;
// Handle users without primary organization gracefully
if (!user.primaryOrganizationId && !correspondencePublicId) {
return { data: [], meta: { total: 0, page, limit } };
}
const query = this.circulationRepo
.createQueryBuilder('c')
.leftJoinAndSelect('c.creator', 'creator')