mirror of https://github.com/fantasticit/think.git
server: optimize response data
This commit is contained in:
parent
f37820f79f
commit
1e26dea10a
|
@ -425,7 +425,7 @@ export class DocumentService {
|
||||||
// 5. 生成响应
|
// 5. 生成响应
|
||||||
const doc = instanceToPlain(document);
|
const doc = instanceToPlain(document);
|
||||||
const createUser = await this.userService.findById(doc.createUserId);
|
const createUser = await this.userService.findById(doc.createUserId);
|
||||||
return { document: lodash.omit({ ...doc, views, createUser }, ['state']), authority };
|
return { document: lodash.omit({ ...doc, views, createUser }, ['state', 'content']), authority };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue