fix(portal): complete camelCase mapping for student profile data
This commit is contained in:
parent
3e5c9afda2
commit
bb4fbe6ebb
|
|
@ -140,6 +140,19 @@ app.post('/api/portal/login', async (req, res) => {
|
|||
status: s.status,
|
||||
portalPassword: s.senha_portal,
|
||||
cpf: s.cpf,
|
||||
rg: s.rg,
|
||||
birthDate: s.data_nascimento,
|
||||
phone: s.telefone,
|
||||
email: s.email,
|
||||
addressStreet: s.rua,
|
||||
addressNumber: s.numero,
|
||||
addressNeighborhood: s.bairro,
|
||||
addressCity: s.cidade,
|
||||
addressState: s.estado,
|
||||
addressZip: s.cep,
|
||||
guardianName: s.nome_responsavel,
|
||||
guardianCpf: s.cpf_responsavel,
|
||||
guardianPhone: s.telefone_responsavel,
|
||||
classId: s.turma_id,
|
||||
photo: normalizeStorageUrl(s.foto_url)
|
||||
};
|
||||
|
|
@ -243,6 +256,19 @@ app.get('/api/portal/me', authMiddleware, async (req, res) => {
|
|||
status: s.status,
|
||||
portalPassword: s.senha_portal,
|
||||
cpf: s.cpf,
|
||||
rg: s.rg,
|
||||
birthDate: s.data_nascimento,
|
||||
phone: s.telefone,
|
||||
email: s.email,
|
||||
addressStreet: s.rua,
|
||||
addressNumber: s.numero,
|
||||
addressNeighborhood: s.bairro,
|
||||
addressCity: s.cidade,
|
||||
addressState: s.estado,
|
||||
addressZip: s.cep,
|
||||
guardianName: s.nome_responsavel,
|
||||
guardianCpf: s.cpf_responsavel,
|
||||
guardianPhone: s.telefone_responsavel,
|
||||
classId: s.turma_id,
|
||||
photo: normalizeStorageUrl(s.foto_url)
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue