Skip to content

Commit

Permalink
fix: Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrovarelasc committed May 13, 2024
1 parent 339e537 commit 677dfdb
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 50 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Desarrollar y validar un sistema tele-informático que permita automatizar el pr
# kubectl create -f ./storage/mongo-operator.yaml --namespace apps
# kubectl delete -f ./storage/mongo-operator.yaml --namespace apps
# Using local mongo db - Move to storage folder
./generate.
./generate.sh
./configure.sh admin
kubectl apply -f ./storage/mongo-ui.yaml --namespace apps
# Creation of cisterns db and measurements colleciton from ui
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { Alert as AlertDomain } from '@/domain/model/Alert'
import mongoose, { Model } from 'mongoose'
const { Schema, model } = mongoose
import { Alert as AlertDomain } from "@/domain/model/Alert";
import mongoose, { Model } from "mongoose";
const { Schema, model } = mongoose;

const AlertSchema = new Schema<AlertDomain>({
_id: String,
hostname: String,
type: String,
description: String,
})
value: Boolean,
});

const Alert: Model<AlertDomain> = mongoose.models?.Alert|| model('Alert', AlertSchema)
const Alert: Model<AlertDomain> =
mongoose.models.Alert || model("Alert", AlertSchema);

export default Alert
export default Alert;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { Device as DeviceDomain } from '@/domain/model/Device'
import mongoose, { Model } from 'mongoose'
const { Schema, model } = mongoose
import { Device as DeviceDomain } from "@/domain/model/Device";
import mongoose, { Model } from "mongoose";
const { Schema, model } = mongoose;

const DeviceSchema = new Schema<DeviceDomain>({
name: String,
type: String,
location: String,
})
_id: String,
hostname: String,
ip: String,
status: Boolean,
});

const Device: Model<DeviceDomain> = mongoose.models?.Device|| model('Device', DeviceSchema)
const Device: Model<DeviceDomain> =
mongoose.models.Device || model("Device", DeviceSchema);

export default Device
export default Device;
2 changes: 1 addition & 1 deletion compute/client/src/pages/api/alerts/[id].ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from "next";
import { dbConnect } from "@/infrastructure/database/mongo-client.database";
import Alert from "@/infrastructure/database/mongo-alerts-database";
import Alert from "@/infrastructure/database/mongo-alerts.database";
import { Types } from "mongoose";

export default async function handler(
Expand Down
2 changes: 1 addition & 1 deletion compute/client/src/pages/api/alerts/getAlerts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from "next";
import { dbConnect } from "@/infrastructure/database/mongo-client.database";
import Alert from "@/infrastructure/database/mongo-alerts-database";
import Alert from "@/infrastructure/database/mongo-alerts.database";
import { Alert as AlertType } from "@/domain/model/Alert";

export default async function handler(
Expand Down
2 changes: 1 addition & 1 deletion compute/client/src/pages/api/alerts/getAmountAlerts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from "next";
import { dbConnect } from "@/infrastructure/database/mongo-client.database";
import Alert from "@/infrastructure/database/mongo-alerts-database";
import Alert from "@/infrastructure/database/mongo-alerts.database";

interface AlertsCount {
_id: string;
Expand Down

0 comments on commit 677dfdb

Please sign in to comment.