@@ -13,6 +13,9 @@ module.exports = {
"is_allowed",
"roomname",
"u_id",
+ "adminuser",
+ "phone",
+ "passwd",
],
},
destroy: {
@@ -33,6 +36,9 @@ module.exports = {
"place",
show: {
@@ -38,7 +38,7 @@ class ChatService extends CrudService {
result.save();
}
- return res;
+ return { ...JSON.parse(JSON.stringify(res)), name: body.adminuser, phone: body.phone };
async apply({ id }, body) {
const dock = await this.model.findOne({ _id: ObjectId(id) });