remove userID and teamID from status page
This commit is contained in:
1 parent
5e23a2b79c
commit
42372ab111
4 files changed
+14
-9
No files matched your search
@@ -24,7 +24,13 @@ class StatusPageController {
|
||||
}
|
||||
|
||||
try {
|
||||
const statusPage = await this.db.createStatusPage(req.body, req.file);
|
||||
const { _id, teamId } = req.user;
|
||||
const statusPage = await this.db.createStatusPage({
|
||||
statusPageData: req.body,
|
||||
image: req.file,
|
||||
userId: _id,
|
||||
teamId,
|
||||
});
|
||||
return res.success({
|
||||
msg: this.stringService.statusPageCreate,
|
||||
data: statusPage,
|
||||
|
||||
Reference in new issue
Block a user