chore: removed async keyword
This commit is contained in:
@@ -189,7 +189,7 @@ export class InfraConfigService implements OnModuleInit {
|
|||||||
* @param service Service can be Auth Provider, Mailer, Audit Log etc.
|
* @param service Service can be Auth Provider, Mailer, Audit Log etc.
|
||||||
* @returns Either true or false
|
* @returns Either true or false
|
||||||
*/
|
*/
|
||||||
async isServiceConfigured(service: AuthProvider) {
|
isServiceConfigured(service: AuthProvider) {
|
||||||
switch (service) {
|
switch (service) {
|
||||||
case AuthProvider.GOOGLE:
|
case AuthProvider.GOOGLE:
|
||||||
if (
|
if (
|
||||||
@@ -246,7 +246,7 @@ export class InfraConfigService implements OnModuleInit {
|
|||||||
const { provider, status } = providerInfo[i];
|
const { provider, status } = providerInfo[i];
|
||||||
|
|
||||||
if (status === ServiceStatus.ENABLE) {
|
if (status === ServiceStatus.ENABLE) {
|
||||||
const isConfigured = await this.isServiceConfigured(provider);
|
const isConfigured = this.isServiceConfigured(provider);
|
||||||
if (!isConfigured) {
|
if (!isConfigured) {
|
||||||
throwErr(INFRA_CONFIG_SERVICE_NOT_CONFIGURED);
|
throwErr(INFRA_CONFIG_SERVICE_NOT_CONFIGURED);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user