SudoSOS Back-end API / helpers / parseUserToResponse
Function: parseUserToResponse() ​
ts
function parseUserToResponse(user, timestamps?): UserResponse;Parses a User DB entity to a UserResponse
Parameters ​
| Parameter | Type | Default value | Description |
|---|---|---|---|
user | User | undefined | User to parse |
timestamps | boolean | false | Boolean if createdAt and UpdatedAt should be included |