server: optimize response data

This commit is contained in:
fantasticit 2022-05-25 12:39:54 +08:00
parent f37820f79f
commit 1e26dea10a
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ export class DocumentService {
// 5. 生成响应
const doc = instanceToPlain(document);
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 };
}
/**