deleteUserById method
Deletes a User
by userId
On success the User
identified by userId
is deleted
In case of error a ResponseError
is set on DeleteUserResponse
Implementation
@override
Future<DeleteUserResponse> deleteUserById(String userId) {
return catchSqlError<DeleteUserResponse>(
store.userDao
.deleteById(userId)
.then((reponse) => DeleteUserResponse()),
(sqle) => DeleteUserResponse(
error: toResponseError(sqle, context: contextUser, target: userId)),
options);
}