#6264 - renewToken #1824
|
@ -1,8 +1,7 @@
|
||||||
const UserError = require('vn-loopback/util/user-error');
|
const UserError = require('vn-loopback/util/user-error');
|
||||||
const {models} = require('vn-loopback/server/server');
|
const {models} = require('vn-loopback/server/server');
|
||||||
|
|
||||||
const DEFAULT_COURTESY_TIME = 60;
|
const handlePromiseLogout = (Self, {id}, courtesyTime) => {
|
||||||
const handlePromiseLogout = (Self, {id}, courtesyTime = DEFAULT_COURTESY_TIME) => {
|
|
||||||
new Promise(res => {
|
new Promise(res => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
res(Self.logout(id));
|
res(Self.logout(id));
|
||||||
|
|
Loading…
Reference in New Issue