|
@@ -30,7 +30,11 @@ export class OperationLogService {
|
|
|
log.objectName = ObjectName
|
|
log.objectName = ObjectName
|
|
|
log.operationType = operationType
|
|
log.operationType = operationType
|
|
|
log.description = description
|
|
log.description = description
|
|
|
- log.details = details.toString() || JSON.stringify(Object)
|
|
|
|
|
|
|
+ if (details) {
|
|
|
|
|
+ log.details = details.toString()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.details = JSON.stringify(Object)
|
|
|
|
|
+ }
|
|
|
await this.OperationLogRepository.save(log)
|
|
await this.OperationLogRepository.save(log)
|
|
|
}
|
|
}
|
|
|
|
|
|