Skip to content

Commit 792325f

Browse files
committed
Agency Initials instead of name in /facilities endpoint
1 parent de39272 commit 792325f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/facility/facility.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class FacilityRepository {
8282
.select({
8383
id: facility.id,
8484
name: facility.name,
85-
oversightAgency: agency.name,
85+
oversightAgencyInitials: agency.initials,
8686
categoryId: facilityGroup.facilityDomainId,
8787
hasSogrData: sql<boolean>`${isNotNull(facility.sgrLtr)}`,
8888
})

src/schema/facility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const facilityEntitySchema = z.object({
166166
export const facilityPageItemEntitySchema = z.object({
167167
id: z.string(),
168168
name: z.string().nullable(),
169-
oversightAgency: agencyEntitySchema.shape.name.nullable(),
169+
oversightAgencyInitials: agencyEntitySchema.shape.initials.nullable(),
170170
categoryId: z.number().nullable(),
171171
hasSogrData: z.boolean(),
172172
});

0 commit comments

Comments
 (0)