We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cdc401 commit a19d425Copy full SHA for a19d425
src/management/identities/identities.controller.ts
@@ -94,6 +94,7 @@ export class IdentitiesController extends AbstractController {
94
[key: string]: string;
95
}[] = [],
96
@Query('errorOnNotFound') errorOnNotFound: string = 'false',
97
+ @Query('upsert') upsert: string = 'true',
98
): Promise<
99
Response<{
100
statusCode: number;
@@ -112,6 +113,7 @@ export class IdentitiesController extends AbstractController {
112
113
114
const data = await this._service.upsert<Identities>(filters, body, {
115
errorOnNotFound: /true|on|yes|1/i.test(errorOnNotFound),
116
+ upsert: /true|on|yes|1/i.test(upsert),
117
});
118
119
// If the state is TO_COMPLETE, the identity is created but additional fields are missing or invalid
0 commit comments