mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
added more api's. Fixed data types for temperature schema
This commit is contained in:
@@ -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}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user