Skip to content

Commit 4acefe8

Browse files
committed
style: format document to pass linter
1 parent 0aa4222 commit 4acefe8

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/controllers/Auth.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,12 @@ export class AuthController extends BaseController {
449449
};
450450

451451
this.kuzzle.emit("beforeLogin");
452-
return this.query(request, { queuable: false, timeout: -1, verb: "POST", ...options })
452+
return this.query(request, {
453+
queuable: false,
454+
timeout: -1,
455+
verb: "POST",
456+
...options,
457+
})
453458
.then((response) => {
454459
if (this.kuzzle.cookieAuthentication) {
455460
if (response.result.jwt) {
@@ -505,7 +510,7 @@ export class AuthController extends BaseController {
505510
{
506511
action: "logout",
507512
cookieAuth: this.kuzzle.cookieAuthentication,
508-
...options
513+
...options,
509514
},
510515
{ queuable: false, timeout: -1 }
511516
);

src/controllers/Security.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,13 @@ export class SecurityController extends BaseController {
516516
}
517517

518518
refresh(collection, options: ArgsSecurityControllerRefresh = {}) {
519-
return this.query({
520-
action: "refresh",
521-
collection,
522-
}, options);
519+
return this.query(
520+
{
521+
action: "refresh",
522+
collection,
523+
},
524+
options
525+
);
523526
}
524527

525528
replaceUser(_id, body, options: ArgsSecurityControllerReplaceUser = {}) {

0 commit comments

Comments
 (0)