create consumer domain accounts permissions
This commit is contained in:
@@ -18,9 +18,6 @@ export const errorInterceptor: HttpInterceptorFn = (req, next) => {
|
||||
|
||||
return next(req).pipe(
|
||||
catchError((error: HttpErrorResponse) => {
|
||||
console.log('error');
|
||||
console.log(error);
|
||||
|
||||
let errorMessage = 'خطای نامشخص رخ داده است';
|
||||
|
||||
if (error.error instanceof ErrorEvent) {
|
||||
@@ -133,13 +130,9 @@ export enum ErrorType {
|
||||
* Helper function to determine error type
|
||||
*/
|
||||
export function getErrorType(error: HttpErrorResponse): ErrorType {
|
||||
console.log('getErrorType');
|
||||
console.log(error);
|
||||
|
||||
if (error.error instanceof ErrorEvent) {
|
||||
return ErrorType.NETWORK;
|
||||
}
|
||||
console.log(error.status);
|
||||
|
||||
switch (error.status) {
|
||||
case 400:
|
||||
|
||||
@@ -47,6 +47,7 @@ export interface IAuthAccountResponse {
|
||||
provider_id?: string;
|
||||
pos_id?: string;
|
||||
user: IAuthAccountUser;
|
||||
role: string;
|
||||
}
|
||||
interface IAuthAccountUser {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user