Skip to content

Commit

Permalink
fix some loop dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
silicia-apps committed Oct 17, 2023
1 parent 85e7a00 commit 1788ea9
Show file tree
Hide file tree
Showing 6 changed files with 5,288 additions and 5,518 deletions.
16 changes: 8 additions & 8 deletions libs/auth/src/lib/services/plugins/plugin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export class SioAuthPluginService implements SioAuthPluginServiceInterface {
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.getTranslation(error.message),
this.translateService.getTranslation('AUTH_ERROR')
error.message,
'AUTH_ERROR'
);
}
return null;
Expand All @@ -46,8 +46,8 @@ export class SioAuthPluginService implements SioAuthPluginServiceInterface {
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.getTranslation(error.message),
this.translateService.getTranslation('AUTH_ERROR')
error.message,
'AUTH_ERROR'
);
}
return null;
Expand All @@ -63,8 +63,8 @@ export class SioAuthPluginService implements SioAuthPluginServiceInterface {
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.getTranslation('auth.'+error.message),
this.translateService.getTranslation('auth.AUTH_ERROR')
'auth.'+error.message,
'auth.AUTH_ERROR'
);
return null;
}
Expand All @@ -77,8 +77,8 @@ export class SioAuthPluginService implements SioAuthPluginServiceInterface {
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.getTranslation('auth.'+error.message),
this.translateService.getTranslation('AUTH_ERROR')
'auth.'+error.message,
'AUTH_ERROR'
);
return null;
}
Expand Down
1 change: 1 addition & 0 deletions libs/core/src/lib/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from '../services/environment/environment.interface';
export * from '../services/plugins/interfaces';
export * from '../components/form/store/form.model';
export * from '../components/input/input.interface';
export * from '../components/app/app.interface';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModuleWithProviders } from "@angular/core";
import { SioCoreAppCompomentInterface } from '../../components/app';
import { SioCoreAppCompomentInterface } from '../../interfaces';
import { SioCorePluginServiceConfigModel } from "../plugins";

export interface SioCoreEnvironmentInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable, Optional } from '@angular/core';
import { SioCoreEnvironmentInterface } from './environment.interface';
//import { SioCoreLoggerService } from '../logger';
import { LogLevel } from '../../shared/shared.enum';
import { SioCoreAppCompomentInterface } from '../../components/app';
import { SioCoreAppCompomentInterface } from '../../interfaces';

export class SioCoreEnvironmentConfig implements SioCoreEnvironmentInterface {
production = false;
Expand Down
16 changes: 8 additions & 8 deletions libs/database/src/lib/services/plugins/plugin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class SioDatabasePluginService
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.translate(error.message),
this.translateService.translate('DATABASE_ERROR')
error.message,
'DATABASE_ERROR'
);
}
return false;
Expand All @@ -52,8 +52,8 @@ export class SioDatabasePluginService
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.translate(error.message),
this.translateService.translate('DATABASE_ERROR')
error.message,
'DATABASE_ERROR'
);
}
return false;
Expand All @@ -70,8 +70,8 @@ export class SioDatabasePluginService
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.translate(error.message),
this.translateService.translate('DATABASE_ERROR')
error.message,
'DATABASE_ERROR'
);
}
return false;
Expand All @@ -87,8 +87,8 @@ export class SioDatabasePluginService
const error = e as Error;
if (error.name === 'sio-error')
this.sioCoreAppComponentState.throwError(
this.translateService.translate(error.message),
this.translateService.translate('DATABASE_ERROR')
error.message,
'DATABASE_ERROR'
);
}
return false;
Expand Down
Loading

0 comments on commit 1788ea9

Please sign in to comment.