mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Add support for Server monitor type in MonitorCriteriaInstance.ts and update start script in package.json
This commit is contained in:
@@ -104,7 +104,8 @@ export default class MonitorCriteriaInstance extends DatabaseProperty {
|
||||
if (
|
||||
arg.monitorType === MonitorType.Ping ||
|
||||
arg.monitorType === MonitorType.IP ||
|
||||
arg.monitorType === MonitorType.Port
|
||||
arg.monitorType === MonitorType.Port ||
|
||||
arg.monitorType === MonitorType.Server
|
||||
) {
|
||||
monitorCriteriaInstance.data = {
|
||||
id: ObjectID.generate().toString(),
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "",
|
||||
"main": "./build/dist/Index.js",
|
||||
"scripts": {
|
||||
"start": "node --require ts-node/register Index.ts",
|
||||
"start": "node --require ts-node/register Index.ts $npm_config_services",
|
||||
"compile": "tsc",
|
||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||
"dev": "npx nodemon",
|
||||
|
||||
Reference in New Issue
Block a user