remove userID and teamID from status page

This commit is contained in:
Alex Holliday committed 2025-06-13 13:10:56 +08:00
1 parent 5e23a2b79c
commit 42372ab111
4 files changed
+14 -9

No files matched your search

+7 -1
View File
@@ -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,