Skip to content

Commit 1438ccc

Browse files
committed
🐛 Sanitize contact from getContactById
1 parent 35820bc commit 1438ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/controller.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,14 +501,14 @@ export class Controller {
501501
providerConfig.apiKey,
502502
);
503503

504-
const responeContact = await this.adapter.getContact(
504+
const contact = await this.adapter.getContact(
505505
providerConfig,
506506
contactId,
507507
contactType,
508508
);
509509

510510
infoLogger('getContact', 'END', providerConfig.apiKey);
511-
res.status(200).send(responeContact);
511+
res.status(200).send(sanitizeContact(contact, providerConfig.locale));
512512
} catch (error: any) {
513513
// prevent logging of refresh errors
514514
if (

0 commit comments

Comments
 (0)