mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-05 06:29:09 +00:00
FIX: remove language param
This commit is contained in:
@@ -35,8 +35,8 @@ export class OpenDataController {
|
||||
async createUser(
|
||||
@Body()
|
||||
body: WordpressForm,
|
||||
@Query()
|
||||
language: string
|
||||
// @Query()
|
||||
// language: string
|
||||
) {
|
||||
this.logger.info('createUser for open data' + JSON.stringify({ body }));
|
||||
|
||||
@@ -47,9 +47,9 @@ export class OpenDataController {
|
||||
const OPENDATA_CUSTOMER_ID = "bb4e9b26-d465-40ff-9345-e768ca69a55e";
|
||||
|
||||
const roles = ["4d621501-5ea4-444b-b46e-1a009f3132ff"];
|
||||
const metadata = PackTheMetadata({
|
||||
language,
|
||||
});
|
||||
// const metadata = PackTheMetadata({
|
||||
// language: ,
|
||||
// });
|
||||
|
||||
const data = {}
|
||||
|
||||
@@ -75,7 +75,7 @@ export class OpenDataController {
|
||||
this.logger.info('user request' + JSON.stringify({ user, roles, customer: OPENDATA_CUSTOMER_ID }));
|
||||
|
||||
try {
|
||||
const response = await this.openDataService.createUser(OPENDATA_CUSTOMER_ID, user, roles, metadata);
|
||||
const response = await this.openDataService.createUser(OPENDATA_CUSTOMER_ID, user, roles);
|
||||
this.logger.info('user created with sucessfull data' + JSON.stringify(response));
|
||||
return "success"
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user