Skip to content

Commit 7912366

Browse files
committed
v1.2.0
1 parent 1026247 commit 7912366

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

commands/MakeModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class MakeMongoose extends Command {
8484
/**
8585
* Split and pop to get the actual model name, only needs
8686
* to be full for pathing
87-
*
87+
*
8888
* eg: adonis make:mongoose Directory/Model
8989
*/
9090
name = name.split('/').pop()

instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ This is an example of a Token Model compatible with the Mongoose Serializer
156156
* @param {String} type
157157
* @memberof Token
158158
*/
159-
static async fetchSession(token, type) {
159+
static async fetchSession (token, type) {
160160
return this.findOneAndUpdate({
161161
token,
162162
type,
@@ -176,7 +176,7 @@ This is an example of a Token Model compatible with the Mongoose Serializer
176176
* @returns
177177
* @memberof Token
178178
*/
179-
static async dispose(uid, tokens = null, inverse = false) {
179+
static async dispose (uid, tokens = null, inverse = false) {
180180
// Remove some tokens
181181
if (tokens) {
182182
// Remove all but selected, or just selected
@@ -194,7 +194,7 @@ This is an example of a Token Model compatible with the Mongoose Serializer
194194
}
195195

196196
TokenSchema.loadClass(Token)
197-
TokenSchema.index({ token: 1 });
197+
TokenSchema.index({ token: 1 })
198198

199199
module.exports = mongoose.model('Token', TokenSchema)
200200
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adonis-mongoose-model",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Mongoose models for Adonis framework",
55
"main": "index.js",
66
"repository": "git@github.com:juampi92/adonis-mongoose.git",

providers/MongooseProvider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ class MongooseProvider extends ServiceProvider {
1717
/**
1818
* Install mongoose serializer
1919
*/
20-
_registerSerializer() {
20+
_registerSerializer () {
2121
ioc.extend('Adonis/Src/Auth',
2222
'mongoose',
2323
(app) => require('../src/Serializers/MongooseSerializer'),
2424
'serializer')
2525
}
2626

27-
async _registerMongoose() {
27+
async _registerMongoose () {
2828
this.app.singleton('Adonis/Addons/Mongoose', function (app) {
2929
const Config = app.use('Adonis/Src/Config')
3030
let connectionString = Config.get('database.mongodb.connectionString', null)
@@ -53,7 +53,7 @@ class MongooseProvider extends ServiceProvider {
5353
})
5454
}
5555

56-
_registerModel() {
56+
_registerModel () {
5757
this.app.bind('Adonis/Src/Model', (app) => require('../src/Model/Base'))
5858
this.app.alias('Adonis/Src/Model', 'Model')
5959
}

0 commit comments

Comments
 (0)