Notification system in frontend

- Heatmap worker now reports progress
- Base for new altitude value
- Phones can be marked active
This commit is contained in:
2020-11-13 19:04:45 +01:00
parent d747b7be5b
commit ab1b90d020
27 changed files with 423 additions and 36 deletions

View File

@@ -8,6 +8,7 @@ export interface IPhone extends Document {
operatingSystem: String,
architecture: String,
user: IUser,
active: Boolean,
updatedAt?: Date,
createdAt?: Date
}

View File

@@ -7,7 +7,8 @@ const schemaPhone = new Schema({
modelName: { type: String, required: false },
operatingSystem: { type: String, required: false },
architecture: { type: String, required: false },
user: { type: SchemaTypes.ObjectId, required: true }
user: { type: SchemaTypes.ObjectId, required: true },
active: { type: Boolean, required: true }
}, {
timestamps: {
createdAt: true,