Added web and email notifications. Tests. Fire page
This commit is contained in:
parent
df05b33e82
commit
3bf21c8caf
32 changed files with 696 additions and 88 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import { Mongo } from 'meteor/mongo';
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import firesCommonSchema from '../Common/FiresSchema';
|
||||
|
||||
const ActiveFires = new Mongo.Collection('activefires', { idGeneration: 'MONGO' });
|
||||
|
||||
|
|
@ -17,6 +18,13 @@ ActiveFires.deny({
|
|||
remove: () => true
|
||||
});
|
||||
|
||||
|
||||
ActiveFires.schema = new SimpleSchema(firesCommonSchema);
|
||||
|
||||
ActiveFires.attachSchema(ActiveFires.schema);
|
||||
|
||||
export default ActiveFires;
|
||||
|
||||
/* Sample:
|
||||
* {
|
||||
* "_id" : ObjectId("5a208d7579095a1adba48191"),
|
||||
|
|
@ -46,19 +54,3 @@ ActiveFires.deny({
|
|||
* "createdAt" : ISODate("2017-11-30T08:07:33.720Z")
|
||||
* }
|
||||
* */
|
||||
|
||||
ActiveFires.schema = new SimpleSchema({
|
||||
lat: Number,
|
||||
lon: Number,
|
||||
scan: Number,
|
||||
type: String,
|
||||
acq_date: String,
|
||||
acq_time: String,
|
||||
when: Date,
|
||||
createdAt: Date,
|
||||
updatedAt: Date
|
||||
});
|
||||
|
||||
ActiveFires.attachSchema(ActiveFires.schema);
|
||||
|
||||
export default ActiveFires;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue