HM-59. Исправлена ошибка записи данных Клиентских запросов
This commit is contained in:
@ -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,
|
||||
});
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user