Skip to content

Commit 8b2b4cf

Browse files
committed
replace categories by category in structure details
1 parent b42c222 commit 8b2b4cf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/api/commons/queries/structures.query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default [
3636
_id: 0,
3737
id: 1,
3838
alternativePaysageIds: { $ifNull: ['$alternativePaysageIds', []] },
39-
categories: { $ifNull: ['$categories', []] },
39+
category: { $ifNull: ['$category', {}] },
4040
closureDate: { $ifNull: ['$closureDate', null] },
4141
closureOfficialText: { $ifNull: ['$closureOfficialText', {}] },
4242
closureOfficialTextId: { $ifNull: ['$closureOfficialTextId', null] },

src/openapi/schemas/structures/structure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ allOf:
6868
population:
6969
type: integer
7070
nullable: true
71-
categories:
72-
type: array
71+
category:
72+
type: object
7373
legalcategory:
7474
type: object
7575
- $ref: '../../api.yml#/components/schemas/Metas'

0 commit comments

Comments
 (0)