All tests passing
This commit is contained in:
@@ -63,8 +63,8 @@ const getById = async (id) => {
|
||||
* @param {*} user
|
||||
*/
|
||||
const convertToPublicFormat = (user = {}) => {
|
||||
user.email = user.hk || null;
|
||||
user.id = user.sk2 || null;
|
||||
user.email = user.email || user.hk || null;
|
||||
user.id = user.id || user.sk2 || null;
|
||||
if (user.hk) {
|
||||
delete user.hk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user