Skip to content

Commit

Permalink
Update: node version and dependencies updated
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan787 committed Jul 16, 2023
1 parent 5f76539 commit c86a2a3
Show file tree
Hide file tree
Showing 6 changed files with 8,708 additions and 5,549 deletions.
4 changes: 2 additions & 2 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"jwtPrivateKey": "",
"db": "mongodb://localhost/vidly"
"jwtPrivateKey": "mySecretKey",
"db": "mongodb://127.0.0.1:27017/vidly"
}
5 changes: 2 additions & 3 deletions models/rental.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ const mongoose = require('mongoose')
const Joi = require('joi')
const Fawn = require('fawn')
const moment = require('moment')
const config = require('config')

Fawn.init(mongoose)
Fawn.init(config.get('db'))

const rentalSchema = mongoose.Schema({
customer: {
Expand Down Expand Up @@ -98,5 +99,3 @@ function validateRental(reqRental){
module.exports = {
Rental, validateRental
}


Loading

0 comments on commit c86a2a3

Please sign in to comment.