Skip to content
Snippets Groups Projects
Commit ff8a46e3 authored by stckvrflw's avatar stckvrflw
Browse files

feat: getAllPending soap service

parent 43379bb7
No related merge requests found
......@@ -139,7 +139,18 @@ public class UserPremiumServiceImpl implements UserPremiumService {
@Override
public List<UserPremium> getAllPending() throws SQLException {
return null;
Logger.log(context, "[REST] Get all pending premium request for admin", "/userpremiumservice{getAllPending}");
if (Auth.IsAuthenticated(context, ServiceType.REST)) {
List<UserPremium> s = UserPremium.find(-1, -1);
List<UserPremium> userPremiums = new ArrayList<>();
for (UserPremium user : s) {
if (user.premiumStatus == UserPremium.Status.PENDING) {
userPremiums.add(user);
}
}
return userPremiums;
}
throw new SQLException("Not authenticated");
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment