server: optimize response data

pull/60/head
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. 生成响应 // 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 };
} }
/** /**