From 36465387454cdb797f886f732d40a70faa92cbad Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Nov 2020 16:31:59 +0300 Subject: refactor: reuse Mongoose connection in Agenda --- src/services/users/user.model.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/services/users/user.model.js (limited to 'src/services/users/user.model.js') diff --git a/src/services/users/user.model.js b/src/services/users/user.model.js new file mode 100644 index 0000000..74a83ae --- /dev/null +++ b/src/services/users/user.model.js @@ -0,0 +1,6 @@ +const { model } = require('mongoose'); +const userSchema = require('./user.schema.js'); + +module.exports = model('User', userSchema); + + -- cgit v1.2.3