diff options
author | 2019-09-05 11:22:49 +0200 | |
---|---|---|
committer | 2019-09-05 11:22:49 +0200 | |
commit | 29b8334b060dc0c05a509d523ead4b3a30229fef (patch) | |
tree | 4dbfcfb90a3eff31acd219b27557bbdc594f589f /app/Models/Service.js | |
parent | Add cookie notice to login page (diff) | |
download | ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.tar.gz ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.tar.zst ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.zip |
Add eslint
Diffstat (limited to 'app/Models/Service.js')
-rw-r--r-- | app/Models/Service.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/Models/Service.js b/app/Models/Service.js index 0ca72fd..0a13ec1 100644 --- a/app/Models/Service.js +++ b/app/Models/Service.js | |||
@@ -1,12 +1,11 @@ | |||
1 | 'use strict' | ||
2 | 1 | ||
3 | /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ | 2 | /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ |
4 | const Model = use('Model') | 3 | const Model = use('Model'); |
5 | 4 | ||
6 | class Service extends Model { | 5 | class Service extends Model { |
7 | user() { | 6 | user() { |
8 | return this.belongsTo('App/Models/User', 'userId', 'id') | 7 | return this.belongsTo('App/Models/User', 'userId', 'id'); |
9 | } | 8 | } |
10 | } | 9 | } |
11 | 10 | ||
12 | module.exports = Service | 11 | module.exports = Service; |