Skip to content

Commit a19d425

Browse files
committed
feat: Add query parameter for upsert in IdentitiesController
1 parent 5cdc401 commit a19d425

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/management/identities/identities.controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export class IdentitiesController extends AbstractController {
9494
[key: string]: string;
9595
}[] = [],
9696
@Query('errorOnNotFound') errorOnNotFound: string = 'false',
97+
@Query('upsert') upsert: string = 'true',
9798
): Promise<
9899
Response<{
99100
statusCode: number;
@@ -112,6 +113,7 @@ export class IdentitiesController extends AbstractController {
112113

113114
const data = await this._service.upsert<Identities>(filters, body, {
114115
errorOnNotFound: /true|on|yes|1/i.test(errorOnNotFound),
116+
upsert: /true|on|yes|1/i.test(upsert),
115117
});
116118

117119
// If the state is TO_COMPLETE, the identity is created but additional fields are missing or invalid

0 commit comments

Comments
 (0)