mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 02:29:10 +00:00
styling: standard.js enforcement.
This commit is contained in:
parent
b8da886601
commit
11cf1d4805
9 changed files with 17 additions and 19 deletions
|
@ -6,7 +6,7 @@ class SessionsService extends Service {
|
|||
this.Session = ctx.M.Session
|
||||
}
|
||||
|
||||
async get (id, {rolling}) {
|
||||
async get (id, { rolling }) {
|
||||
const user = await this.Session.findOne({ where: { id } })
|
||||
|
||||
if (user === null) {
|
||||
|
@ -16,7 +16,7 @@ class SessionsService extends Service {
|
|||
return user.data
|
||||
}
|
||||
|
||||
async set (id, data, {maxAge, rolling, changed}) {
|
||||
async set (id, data, { maxAge, rolling, changed }) {
|
||||
let session = await this.Session.findOne({ where: { id } })
|
||||
if (session === null) {
|
||||
session = this.Session.build({ id })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue