Instead of, rather inefficiently, invoking uapi for each user, get the users with postgres databases from the dbindex.db.json file. This will quickly get that list of users regardless of the status of the postgres feature.
Changelog: Improve the check for PostgreSQL users to be more
efficient and to not throw errors if the feature is disabled
for any of the users.
Case RE-188:
Instead of, rather inefficiently, invoking uapi for each user, get the users with postgres databases from the dbindex.db.json file. This will quickly get that list of users regardless of the status of the postgres feature.
Changelog: Improve the check for PostgreSQL users to be more efficient and to not throw errors if the feature is disabled for any of the users.
By submitting pull requests to this repo, I agree to the Contributor License Agreement which can be found at: https://github.com/cpanel/elevate/blob/main/docs/cPanel-CLA.pdf