HM-59. Исправлена ошибка записи данных Клиентских запросов
This commit is contained in:
@ -2,7 +2,7 @@ import * as mongoose from 'mongoose';
|
|||||||
import * as lodash from 'lodash';
|
import * as lodash from 'lodash';
|
||||||
|
|
||||||
import {Injectable, NestInterceptor, ExecutionContext, CallHandler} from '@nestjs/common';
|
import {Injectable, NestInterceptor, ExecutionContext, CallHandler} from '@nestjs/common';
|
||||||
import {Observable, of} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {tap, catchError} from 'rxjs/operators';
|
import {tap, catchError} from 'rxjs/operators';
|
||||||
import {LOG_TYPE} from 'src/consts';
|
import {LOG_TYPE} from 'src/consts';
|
||||||
|
|
||||||
@ -13,8 +13,8 @@ const STATUSES = {
|
|||||||
|
|
||||||
const errorSchema = new mongoose.Schema({
|
const errorSchema = new mongoose.Schema({
|
||||||
type: String,
|
type: String,
|
||||||
request: Object,
|
request: {},
|
||||||
response: Object,
|
response: {},
|
||||||
startTime: String,
|
startTime: String,
|
||||||
endTime: String,
|
endTime: String,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -55,11 +55,11 @@ export class ClientLog extends Document {
|
|||||||
@Prop({required: true, type: String})
|
@Prop({required: true, type: String})
|
||||||
type: string;
|
type: string;
|
||||||
|
|
||||||
@Prop({required: true, type: String})
|
@Prop({required: true, type: {}})
|
||||||
request: string;
|
request: any;
|
||||||
|
|
||||||
@Prop({required: true, type: String})
|
@Prop({required: true, type: {}})
|
||||||
response: string;
|
response: any;
|
||||||
|
|
||||||
@Prop({required: true, type: String})
|
@Prop({required: true, type: String})
|
||||||
startTime: string;
|
startTime: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user