Skip to content

Commit

Permalink
Rectified errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaditya47 committed Feb 26, 2021
1 parent 58c10af commit e3913bb
Show file tree
Hide file tree
Showing 8 changed files with 1,811 additions and 45 deletions.
11 changes: 7 additions & 4 deletions config/config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
const env = process.env.NODE_ENV || 'production'

const accountSid = 'AC9d76dd023b4bab63cc62ea0326176b21';
const authToken = 'df0a8d46bb4dc3e6f931f040f9fb2303';

//insert your API Key & Secret for each environment, keep this file local and never push it to a public repo for security purposes.
const config = {
development :{
APIKey : 'KMHxZWB2TMu8ttFQTOpbow',
APISecret : 'KsyQQfSogWK49pdtM7aCrrHDZDWmBI72geuH',
accountSid : 'AC9d76dd023b4bab63cc62ea0326176b21',
authToken : 'df0a8d46bb4dc3e6f931f040f9fb2303'
accountSid : 'AC9d76dd023b4bab63cc62ea0326176b21',
authToken : 'df0a8d46bb4dc3e6f931f040f9fb2303'
},
production:{
APIKey : 'KMHxZWB2TMu8ttFQTOpbow',
APISecret : 'KsyQQfSogWK49pdtM7aCrrHDZDWmBI72geuH',
accountSid : 'AC9d76dd023b4bab63cc62ea0326176b21',
authToken : 'df0a8d46bb4dc3e6f931f040f9fb2303'
accountSid : 'AC9d76dd023b4bab63cc62ea0326176b21',
authToken : 'df0a8d46bb4dc3e6f931f040f9fb2303'
}
};

Expand Down
5 changes: 3 additions & 2 deletions models/DoneSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ const Schema = mongoose.Schema;

const DoneSchema=new Schema({
tasklist: {
type: String
type: String,
required: true
}
});

module.exports = mongoose.model("task", DoneSchema);
module.exports = mongoose.model("done", DoneSchema);
5 changes: 3 additions & 2 deletions models/InprogressSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ const Schema = mongoose.Schema;

const InprogressSchema=new Schema({
tasklist: {
type: String
type: String,
required: true
}
});

module.exports = mongoose.model("task", InprogressSchema);
module.exports = mongoose.model("inprogress", InprogressSchema);
5 changes: 3 additions & 2 deletions models/TodoSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ const Schema = mongoose.Schema;

const TodoSchema=new Schema({
tasklist: {
type: String
type: String,
required: true
}
});

module.exports = mongoose.model("task", TodoSchema);
module.exports = mongoose.model("todo", TodoSchema);
Loading

0 comments on commit e3913bb

Please sign in to comment.