1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00

added more api's. Fixed data types for temperature schema

This commit is contained in:
2015-12-19 01:40:27 -06:00
parent 01f400ad1f
commit db66b0b568
8 changed files with 100 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
var mongoose = require('mongoose');
var temperatureSchema = new mongoose.Schema({
temperature: String,
humidity: String,
temperature: Number,
humidity: Number,
location: String,
updated: {type: Date, default: Date.now}
});