mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix lint.
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
|
||||
"react",
|
||||
"jsx-a11y",
|
||||
"progress"
|
||||
"progress",
|
||||
"unused-imports"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
@@ -53,7 +54,17 @@
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"no-unused-vars": "error",
|
||||
"no-unused-vars": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"unused-imports/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"vars": "all",
|
||||
"varsIgnorePattern": "^_",
|
||||
"args": "after-used",
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"no-console": "error",
|
||||
"no-undef": "error",
|
||||
"no-empty": "error",
|
||||
|
||||
@@ -41,5 +41,5 @@ app.post('/post', async function (req: Request, res: Response) {
|
||||
})
|
||||
|
||||
app.listen(4050, function () {
|
||||
console.log("Server running on PORT: " + 4050)
|
||||
logger.info("Server running on PORT: " + 4050)
|
||||
});
|
||||
@@ -15,7 +15,7 @@ describe('ScriptMonitor V2', function () {
|
||||
before(function () {
|
||||
|
||||
import express from "express"
|
||||
const app = express();
|
||||
const app = express.getExpressApp();
|
||||
app.get("/test", (req: Request, res: Response) => res.send("yipee!"));
|
||||
server = app.listen(5050);
|
||||
});
|
||||
@@ -54,7 +54,7 @@ describe('ScriptMonitor V2', function () {
|
||||
it("should return false for error thrown in script", async function () {
|
||||
const someFunction = async (done: $TSFixMe) => {
|
||||
console.log('Error log');
|
||||
console.error('Bad Error');
|
||||
logger.error('Bad Error');
|
||||
throw new Error("Bad error");
|
||||
}
|
||||
const result = await runScript(someFunction.toString(), true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { join } from "path"
|
||||
import {performance} from 'perf_hooks'
|
||||
import { performance } from 'perf_hooks'
|
||||
|
||||
import {
|
||||
isMainThread,
|
||||
@@ -22,11 +22,11 @@ class ScriptMonitorError extends Error {
|
||||
super();
|
||||
this.message = message;
|
||||
this.errors = Array.isArray(errors)
|
||||
? errors.reduce(
|
||||
(allErr, err) => [...allErr, err.message].join(','),
|
||||
[]
|
||||
)
|
||||
: (errors.message ?? errors);
|
||||
? errors.reduce(
|
||||
(allErr, err) => [...allErr, err.message].join(','),
|
||||
[]
|
||||
)
|
||||
: (errors.message ?? errors);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ const {
|
||||
} = runConfig;
|
||||
|
||||
const runScript = async (functionCode: $TSFixMe, isCalled: $TSFixMe, options = { maxScriptRunTime, maxSyncStatementDuration }) => {
|
||||
|
||||
|
||||
|
||||
if (isMainThread) {
|
||||
// modifiable option in development mode only
|
||||
@@ -65,7 +65,7 @@ const runScript = async (functionCode: $TSFixMe, isCalled: $TSFixMe, options = {
|
||||
lastMessage = Date.now();
|
||||
break;
|
||||
}
|
||||
case 'log':{
|
||||
case 'log': {
|
||||
consoleLogs.push(payload);
|
||||
break;
|
||||
}
|
||||
@@ -100,8 +100,8 @@ const runScript = async (functionCode: $TSFixMe, isCalled: $TSFixMe, options = {
|
||||
const message = statementTimeExceeded
|
||||
? `Max. synchronous statement execution time exceeded (${maxSyncStatementDuration}ms)`
|
||||
: scriptTimeExceeded
|
||||
? `Max. script execution time exceeded (${maxScriptRunTime}ms)`
|
||||
: 'Script was terminated';
|
||||
? `Max. script execution time exceeded (${maxScriptRunTime}ms)`
|
||||
: 'Script was terminated';
|
||||
resolve({
|
||||
success: false,
|
||||
message,
|
||||
@@ -176,7 +176,7 @@ const runScript = async (functionCode: $TSFixMe, isCalled: $TSFixMe, options = {
|
||||
});
|
||||
} else {
|
||||
// worker_threads code
|
||||
|
||||
|
||||
import { NodeVM } from 'vm2'
|
||||
const vm = new NodeVM({
|
||||
eval: false,
|
||||
@@ -189,16 +189,16 @@ const runScript = async (functionCode: $TSFixMe, isCalled: $TSFixMe, options = {
|
||||
console: 'redirect',
|
||||
});
|
||||
|
||||
vm.on('console.log', (log: $TSFixMe) => {
|
||||
parentPort.postMessage({type: 'log', payload: `[log]: ${log}`});
|
||||
vm.on('logger.info', (log: $TSFixMe) => {
|
||||
parentPort.postMessage({ type: 'log', payload: `[log]: ${log}` });
|
||||
});
|
||||
|
||||
vm.on('console.error', (error: $TSFixMe) => {
|
||||
parentPort.postMessage({type: 'log', payload: `[error]: ${error}`});
|
||||
vm.on('logger.error', (error: $TSFixMe) => {
|
||||
parentPort.postMessage({ type: 'log', payload: `[error]: ${error}` });
|
||||
});
|
||||
|
||||
vm.on('console.warn', (error: $TSFixMe) => {
|
||||
parentPort.postMessage({type: 'log', payload: `[warn]: ${error}`});
|
||||
parentPort.postMessage({ type: 'log', payload: `[warn]: ${error}` });
|
||||
});
|
||||
|
||||
const scriptCompletedCallback = (err: $TSFixMe) => {
|
||||
@@ -208,7 +208,7 @@ const runScript = async (functionCode: $TSFixMe, isCalled: $TSFixMe, options = {
|
||||
};
|
||||
|
||||
const code = workerData.functionCode;
|
||||
setInterval(() => parentPort.postMessage({type: 'ping'}), 500);
|
||||
setInterval(() => parentPort.postMessage({ type: 'ping' }), 500);
|
||||
const sandboxFunction = await vm.run(
|
||||
`export default ${code}`,
|
||||
join(process.cwd(), 'node_modules')
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
placeholderTitleDiv.className = 'text';
|
||||
placeholderTitleDiv.innerHTML = statusMessage;
|
||||
})
|
||||
.catch(err => console.error(err));
|
||||
.catch(err => logger.error(err));
|
||||
}
|
||||
window.onload = function() {
|
||||
initializeBubble();
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import 'common-server/utils/env';
|
||||
import 'common-server/utils/process';
|
||||
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import logger from 'common-server/utils/logger';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import path from 'path';
|
||||
const app = express();
|
||||
const app = express.getExpressApp();
|
||||
|
||||
import compression from 'compression';
|
||||
|
||||
@@ -79,6 +75,6 @@ app.get('/*', function (req: Request, res: Response) {
|
||||
});
|
||||
|
||||
const PORT = process.env.PORT || 3003;
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`This project is running on port ${PORT}`);
|
||||
|
||||
logger.info(`This project is running on port ${PORT}`);
|
||||
app.listen(PORT);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import lighthouse from 'lighthouse';
|
||||
import logger from 'common-server/utils/logger';
|
||||
import chromeLauncher from 'chrome-launcher';
|
||||
import ora from 'ora';
|
||||
|
||||
@@ -104,8 +105,7 @@ process.on('message', function (data) {
|
||||
return scores;
|
||||
})
|
||||
.catch(err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(err);
|
||||
logger.info(err);
|
||||
process.exit(1);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -24,8 +24,8 @@ if (
|
||||
const address = window.location.host.includes('localhost:')
|
||||
? 'localhost'
|
||||
: window.location.host.includes('0.0.0.0:')
|
||||
? '0.0.0.0'
|
||||
: '127.0.0.1';
|
||||
? '0.0.0.0'
|
||||
: '127.0.0.1';
|
||||
apiUrl = window.location.protocol + `//${address}:3002/api`;
|
||||
dashboardUrl = window.location.protocol + `//${address}:3000/dashboard`;
|
||||
adminDashboardUrl = window.location.protocol + `//${address}:3100/admin`;
|
||||
@@ -178,7 +178,6 @@ export const Validate = {
|
||||
return false;
|
||||
},
|
||||
|
||||
//eslint-disable-next-line
|
||||
isValidBusinessEmail(email: $TSFixMe) {
|
||||
//return emaildomains.test(email);
|
||||
return true;
|
||||
|
||||
@@ -96,7 +96,7 @@ function registerValidSW(swUrl: $TSFixMe, config: $TSFixMe) {
|
||||
};
|
||||
})
|
||||
.catch(error => {
|
||||
// eslint-disable-next-line no-console
|
||||
//eslint-disable-next-line no-console
|
||||
console.error('Error during service worker registration: ', error);
|
||||
});
|
||||
}
|
||||
@@ -124,7 +124,7 @@ function checkValidServiceWorker(swUrl: $TSFixMe, config: $TSFixMe) {
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
// eslint-disable-next-line no-console
|
||||
//eslint-disable-next-line no-console
|
||||
console.log(
|
||||
'No internet connection found. App is running in offline mode.'
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ const buildSW = () => {
|
||||
return `${count} files will be precached, totaling ${size} bytes.`;
|
||||
})
|
||||
.catch(e => {
|
||||
// eslint-disable-next-line no-console
|
||||
//eslint-disable-next-line no-console
|
||||
console.error(e);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@ if ('function' === typeof importScripts) {
|
||||
|
||||
precacheAndRoute(self.__WB_MANIFEST, { cleanUrls: false });
|
||||
} else {
|
||||
// eslint-disable-next-line no-console
|
||||
//eslint-disable-next-line no-console
|
||||
console.log('Workbox could not be loaded. No Offline support');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,29 +1,9 @@
|
||||
process.on('exit', () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Shutting Shutdown');
|
||||
});
|
||||
import 'common-server/utils/env';
|
||||
import 'common-server/utils/process';
|
||||
|
||||
process.on('unhandledRejection', err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Unhandled rejection in process occurred');
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
});
|
||||
|
||||
process.on('uncaughtException', err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Uncaught exception in process occurred');
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
});
|
||||
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import path from 'path';
|
||||
const app = express();
|
||||
const app = express.getExpressApp();
|
||||
|
||||
app.get(['/env.js', '/admin/env.js'], function (req: Request, res: Response) {
|
||||
const env = {
|
||||
|
||||
@@ -3,10 +3,8 @@ import PropTypes from 'prop-types';
|
||||
const UploadFile = ({
|
||||
fileInputKey,
|
||||
|
||||
//eslint-disable-next-line
|
||||
input: { value: omitValue, ...inputProps },
|
||||
|
||||
//eslint-disable-next-line
|
||||
meta: omitMeta,
|
||||
|
||||
...props
|
||||
|
||||
@@ -99,7 +99,7 @@ const fields = [
|
||||
{
|
||||
key: 'smtp-secure',
|
||||
label: 'SMTP Secure',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
@@ -123,7 +123,7 @@ const emailEnableField = [
|
||||
{
|
||||
key: 'email-enabled',
|
||||
label: 'Enable Emails',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
@@ -145,7 +145,7 @@ const smtpOptions = [
|
||||
{
|
||||
key: 'internalSmtp',
|
||||
label: 'Enable internal SMTP server',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
@@ -167,7 +167,7 @@ const smtpOptions = [
|
||||
{
|
||||
key: 'customSmtp',
|
||||
label: 'Enable custom SMTP server',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
|
||||
@@ -43,7 +43,7 @@ const fields = [
|
||||
label: 'Enable SAML',
|
||||
description:
|
||||
'SAML is an industry standard SSO framework typically used by large enterprises for communicating identities across the internet.',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
@@ -328,7 +328,7 @@ class Component extends React.Component {
|
||||
}}
|
||||
autoFocus={
|
||||
field.key ===
|
||||
'domain'
|
||||
'domain'
|
||||
? true
|
||||
: false
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ const fields = [
|
||||
{
|
||||
key: 'call-enabled',
|
||||
label: 'Enable Call Alerts',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
@@ -62,7 +62,7 @@ const fields = [
|
||||
{
|
||||
key: 'sms-enabled',
|
||||
label: 'Enable SMS Alerts',
|
||||
// eslint-disable-next-line react/display-name, react/prop-types
|
||||
|
||||
component: ({
|
||||
input: { value, onChange }
|
||||
}: $TSFixMe) => (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import SMTP from '../components/settings/smtp';
|
||||
import Smtp from '../components/settings/smtp';
|
||||
import Twilio from '../components/settings/twilio';
|
||||
import Sso from '../components/settings/sso';
|
||||
import SsoDefaultRoles from '../components/settings/ssoDefaultRoles';
|
||||
@@ -10,11 +10,11 @@ import EmailLog from '../components/settings/emailLog';
|
||||
import CallLog from '../components/settings/callLog';
|
||||
import SmsLog from '../components/settings/smsLog';
|
||||
|
||||
// eslint-disable-next-line react/display-name
|
||||
|
||||
const getChild = (key: $TSFixMe) => {
|
||||
switch (key) {
|
||||
case '/admin/settings/smtp':
|
||||
return <SMTP />; // eslint-disable-line react/jsx-pascal-case
|
||||
return <Smtp />;
|
||||
case '/admin/settings/twilio':
|
||||
return <Twilio />;
|
||||
case '/admin/settings/sso':
|
||||
|
||||
@@ -1,28 +1,12 @@
|
||||
process.on('exit', () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Shutting Shutdown');
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Unhandled rejection in process occurred');
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
});
|
||||
|
||||
process.on('uncaughtException', err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Uncaught exception in process occurred');
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
});
|
||||
|
||||
import 'common-server/utils/env';
|
||||
import 'common-server/utils/process';
|
||||
import logger from 'common-server/utils/logger';
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
const app = express();
|
||||
const app = express.getExpressApp();
|
||||
import path from 'path';
|
||||
import version from './api/version';
|
||||
|
||||
@@ -31,25 +15,22 @@ import cors from 'cors';
|
||||
app.use(cors());
|
||||
|
||||
process.on('exit', () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Server Shutting Shutdown');
|
||||
logger.info('Server Shutting Shutdown');
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Unhandled rejection in server process occurred');
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
logger.error('Unhandled rejection in server process occurred');
|
||||
|
||||
logger.error(err);
|
||||
});
|
||||
|
||||
process.on('uncaughtException', err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Uncaught exception in server process occurred');
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
logger.error('Uncaught exception in server process occurred');
|
||||
|
||||
logger.error(err);
|
||||
});
|
||||
|
||||
app.use(function (req: Request, res: Response, next: $TSFixMe) {
|
||||
app.use((req: Request, res: Response, next: NextFunction) => {
|
||||
if (typeof req.body === 'string') {
|
||||
req.body = JSON.parse(req.body);
|
||||
}
|
||||
@@ -90,8 +71,7 @@ app.get(['/', '/docs'], function (req: Request, res: Response) {
|
||||
});
|
||||
|
||||
app.listen(app.get('port'), function () {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('API Reference started on PORT:' + app.get('port'));
|
||||
logger.info('API Reference started on PORT:' + app.get('port'));
|
||||
});
|
||||
|
||||
export default app;
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import 'common-server/utils/env';
|
||||
import 'common-server/utils/process';
|
||||
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
const app = express();
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const app = express.getExpressApp();
|
||||
|
||||
import http from 'http';
|
||||
http.createServer(app);
|
||||
@@ -57,7 +53,7 @@ cron.schedule('*/5 * * * *', () => {
|
||||
|
||||
http.listen(app.get('port'), function () {
|
||||
// eslint-disable-next-line
|
||||
console.log(
|
||||
logger.info(
|
||||
`Application Scanner Started on port ${app.get(
|
||||
'port'
|
||||
)}. OneUptime API URL: ${config.serverUrl}`
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import crypto from 'crypto';
|
||||
import logger from 'common-server/utils/logger';
|
||||
import EncryptionKeys from './encryptionKeys';
|
||||
const algorithm = EncryptionKeys.algorithm;
|
||||
const key = EncryptionKeys.key;
|
||||
@@ -87,8 +88,7 @@ export default {
|
||||
)[1];
|
||||
|
||||
conn.on('ready', () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('SSH Client :: ready');
|
||||
logger.info('SSH Client :: ready');
|
||||
return new Promise((resolve, reject) => {
|
||||
git(securityDir)
|
||||
.silent(true)
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import alertService from '../services/alertService';
|
||||
import IncidentService from '../services/incidentService';
|
||||
import alertChargeService from '../services/alertChargeService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ApplicationLogService from '../services/applicationLogService';
|
||||
import UserService from '../services/userService';
|
||||
import ComponentService from '../services/componentService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ApplicationSecurityService from '../services/applicationSecurityService';
|
||||
import ApplicationSecurityLogService from '../services//applicationSecurityLogService';
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import AuditLogsService from '../services/auditLogsService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import AutomatedScriptService from '../services/automatedScriptService';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Request, Response } from 'common-server/utils/express';
|
||||
import { Request, Response, NextFunction } from 'common-server/utils/express';
|
||||
|
||||
import {
|
||||
sendErrorResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import CallLogsService from '../services/callLogsService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
import { fetchPhoneNumbers } from '../services/twilioService';
|
||||
import CallRoutingService from '../services/callRoutingService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import UserService from '../services/userService';
|
||||
import ComponentService from '../services/componentService';
|
||||
import NotificationService from '../services/notificationService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
import ContainerSecurityService from '../services/containerSecurityService';
|
||||
import ContainerSecurityLogService from '../services//containerSecurityLogService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
import psl from 'psl';
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import EmailLogsService from '../services/emailStatusService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import EmailSmtpService from '../services/emailSmtpService';
|
||||
import MailService from '../services/mailService';
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import EmailTemplateService from '../services/emailTemplateService';
|
||||
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
import FeedbackService from '../services/feedbackService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
import FileService from '../services/fileService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
import GlobalConfigService from '../services/globalConfigService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import moment from 'moment';
|
||||
import Handlebars from 'handlebars';
|
||||
import IncidentService from '../services/incidentService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
import ProbeService from '../services/probeService';
|
||||
import {
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
import InvoiceService from '../services/invoiceService';
|
||||
import { sendErrorResponse } from 'common-server/utils/response';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
import LeadService from '../services/leadService';
|
||||
import {
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ProbeService from '../services/probeService';
|
||||
import MonitorService from '../services/monitorService';
|
||||
import LighthouseLogService from '../services/lighthouseLogService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import loginHistoryService from '../services/loginHistoryService';
|
||||
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import axios from 'axios';
|
||||
import UserService from '../services/userService';
|
||||
import MonitorService from '../services/monitorService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
import NotificationService from '../services/notificationService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
import NotificationService from '../services/notificationService';
|
||||
import ErrorService from 'common-server/utils/error';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
import PerformanceTrackerMetricService from '../services/performanceTrackerMetricService';
|
||||
import moment from 'moment';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ProbeService from '../services/probeService';
|
||||
import MonitorService from '../services/monitorService';
|
||||
import LighthouseLogService from '../services/lighthouseLogService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ProjectService from '../services/projectService';
|
||||
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ReportService from '../services/reportService';
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ScheduleService from '../services/scheduleService';
|
||||
const router = express.getRouter();
|
||||
const isUserAdmin = require('../middlewares/project').isUserAdmin;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
@@ -785,8 +781,8 @@ router.get(
|
||||
async function (req, res) {
|
||||
try {
|
||||
const { eventId } = req.params;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { limit, skip, type } = req.query;
|
||||
|
||||
const { limit, skip } = req.query;
|
||||
|
||||
const populate = [
|
||||
{ path: 'createdById', select: 'name' },
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import UserService from '../services/userService';
|
||||
import ComponentService from '../services/componentService';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import { IS_SAAS_SERVICE } from '../config/server';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
import request from 'request';
|
||||
import IntegrationService from '../services/integrationService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import SmsLogsService from '../services/smsCountService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import SmsSmtpService from '../services/smsSmtpService';
|
||||
import TwilioService from '../services/twilioService';
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import SmsTemplateService from '../services/smsTemplateService';
|
||||
|
||||
const router = express.getRouter();
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
sendItemResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import StatusPageService from '../services/statusPageService';
|
||||
import MonitorService from '../services/monitorService';
|
||||
import ProbeService from '../services/probeService';
|
||||
@@ -1409,8 +1405,8 @@ router.get(
|
||||
checkUser,
|
||||
async function (req, res) {
|
||||
const { scheduledEventSlug } = req.params;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { skip, limit, type } = req.query;
|
||||
|
||||
const { skip, limit } = req.query;
|
||||
|
||||
const scheduledEventId = await ScheduledEventService.findOneBy({
|
||||
query: { slug: scheduledEventSlug },
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import { isAuthorized } from '../middlewares/authorization';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import StripeService from '../services/stripeService';
|
||||
import {
|
||||
sendErrorResponse,
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import SubscriberService from '../services/subscriberService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import SubscriberAlertService from '../services/subscriberAlertService';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
import TeamService from '../services/teamService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
|
||||
const router = express.getRouter();
|
||||
import UserService from '../services/userService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import UserService from '../services/userService';
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import IncidentService from '../services/incidentService';
|
||||
import UserService from '../services/userService';
|
||||
const {
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import UserService from '../services/userService';
|
||||
import ProjectService from '../services/projectService';
|
||||
const jwtSecretKey = process.env['JWT_SECRET'];
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
const router = express.getRouter();
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import IntegrationService from '../services/integrationService';
|
||||
const getUser = require('../middlewares/user').getUser;
|
||||
const isUserAdmin = require('../middlewares/project').isUserAdmin;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import express, {
|
||||
Request,
|
||||
Response,
|
||||
NextFunction,
|
||||
} from 'common-server/utils/express';
|
||||
import express, { Request, Response } from 'common-server/utils/express';
|
||||
import ZapierService from '../services/zapierService';
|
||||
import MonitorService from '../services/monitorService';
|
||||
import ProjectService from '../services/projectService';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import mongoose from '../config/db';
|
||||
import ProjectService from '../services/projectService';
|
||||
import { sendErrorResponse } from 'common-server/utils/response';
|
||||
|
||||
import { Request, Response, NextFunction } from 'common-server/utils/express';
|
||||
const ObjectID = mongoose.Types.ObjectId;
|
||||
import MonitorService from '../services/monitorService';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Request, Response } from 'common-server/utils/express';
|
||||
import { Request, Response, NextFunction } from 'common-server/utils/express';
|
||||
|
||||
import ErrorService from 'common-server/utils/error';
|
||||
import ApplicationLogService from '../services/applicationLogService';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user