Merge branch 'develop' into i18n-support-backend
This commit is contained in:
13 files changed
+299
-73
No files matched your search
@@ -74,11 +74,6 @@ const getStatusPagesByTeamId = async (teamId) => {
|
||||
|
||||
try {
|
||||
const statusPages = await StatusPage.find({ teamId });
|
||||
if (statusPages.length === 0) {
|
||||
const error = new Error(stringService.statusPageNotFound);
|
||||
error.status = 404;
|
||||
throw error;
|
||||
}
|
||||
return statusPages;
|
||||
} catch (error) {
|
||||
error.service = SERVICE_NAME;
|
||||
|
||||
Reference in new issue
Block a user