import { UserEntity } from "../entities/user.entity" ; const sanitizeUser = ( user ) => { const { password , ... userWithOutPassword } = user ; return userWithOutPassword ; } ; export { sanitizeUser } ;