diff --git a/importer-db-api/src/routes/grapa/config.js b/importer-db-api/src/routes/grapa/config.js index 494ce784..255fa0df 100644 --- a/importer-db-api/src/routes/grapa/config.js +++ b/importer-db-api/src/routes/grapa/config.js @@ -1,7 +1,15 @@ const relevantAttributes = { - persons: ['id', 'edu_person_principal_name', 'preferred_language_urn', 'first_names', 'last_name', 'primary_email', 'employee_number'], + persons: [ + 'id', + 'edu_person_principal_name', + 'preferred_language_urn', + 'first_names', + 'last_name', + 'primary_email', + 'employee_number' + ] } module.exports = { - relevantAttributes, + relevantAttributes } diff --git a/importer-db-api/src/routes/grapa/grapa.js b/importer-db-api/src/routes/grapa/grapa.js index c2f8c425..654fc4e0 100644 --- a/importer-db-api/src/routes/grapa/grapa.js +++ b/importer-db-api/src/routes/grapa/grapa.js @@ -24,7 +24,7 @@ grapaRouter.get('/persons', async (req, res) => { offset }, mapToModel: true, - model: models.Person, + model: models.Person } )