Fix status page deletion error - missing module reference
- Fix deleteStatusPage method call to use statusPageModule - Change this.db.deleteStatusPage to this.db.statusPageModule.deleteStatusPage - Ensures consistency with other controller methods - Resolves "this.db.deleteStatusPage is not a function" error Fixes bug where status page deletion failed due to incorrect database module reference.
This commit is contained in:
1 parent
fbb570c0d5
commit
d3d20b29c3
1 file changed
+1
-1
@@ -95,7 +95,7 @@ class StatusPageController extends BaseController {
|
||||
|
||||
deleteStatusPage = this.asyncHandler(
|
||||
async (req, res) => {
|
||||
await this.db.deleteStatusPage(req.params.url);
|
||||
await this.db.statusPageModule.deleteStatusPage(req.params.url);
|
||||
return res.success({
|
||||
msg: this.stringService.statusPageDelete,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user