These are chat archives for Automattic/mongoose

25th
Aug 2016
raul
@appsforone_twitter
Aug 25 2016 03:15
can some one help
/Users/ogun/ecommerce/node_modules/mongoose/lib/index.js:360
throw new mongoose.Error.OverwriteModelError(name);
^
OverwriteModelError: Cannot overwrite Category model once compiled.
at Mongoose.model (/Users/ogun/ecommerce/node_modules/mongoose/lib/index.js:360:13)
at Object.<anonymous> (/Users/ogun/ecommerce/models/Category.js:10:27)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/ogun/ecommerce/routes/admin.js:2:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/ogun/ecommerce/app.js:87:19)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
amitk9
@amitk9
Aug 25 2016 21:41
Hey! Is there a way to add/update stuff in the DB without exciting the page, making it in the background..?