HM-59. Исправлена ошибка записи данных Клиентских запросов

This commit is contained in:
vigdorov
2020-07-20 20:22:37 +03:00
parent 74b621fe22
commit 62ab44546d
2 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ import * as mongoose from 'mongoose';
import * as lodash from 'lodash';
import {Injectable, NestInterceptor, ExecutionContext, CallHandler} from '@nestjs/common';
import {Observable, of} from 'rxjs';
import {Observable} from 'rxjs';
import {tap, catchError} from 'rxjs/operators';
import {LOG_TYPE} from 'src/consts';
@ -13,8 +13,8 @@ const STATUSES = {
const errorSchema = new mongoose.Schema({
type: String,
request: Object,
response: Object,
request: {},
response: {},
startTime: String,
endTime: String,
});

View File

@ -55,11 +55,11 @@ export class ClientLog extends Document {
@Prop({required: true, type: String})
type: string;
@Prop({required: true, type: String})
request: string;
@Prop({required: true, type: {}})
request: any;
@Prop({required: true, type: String})
response: string;
@Prop({required: true, type: {}})
response: any;
@Prop({required: true, type: String})
startTime: string;