Module: user-session-dal

Methods

(static) delete(sid) → {Promise.<{deletedRows: (Object|Error)}>}

Deletes an existing session.
Parameters:
Name Type Description
sid string
Source:
Returns:
Type
Promise.<{deletedRows: (Object|Error)}>

(static) get() → {Promise.<(Object|Error)>}

Returns all existing sessions.
Source:
Returns:
Type
Promise.<(Object|Error)>

(static) getUserSessions(UserId) → {Promise.<(Object|Error)>}

Returns all session of the specified user.
Parameters:
Name Type Description
UserId int
Source:
Returns:
Type
Promise.<(Object|Error)>

(static) update(sid) → {Promise.<(Object|Error)>}

Changes the end date of the specified session
Parameters:
Name Type Description
sid string
Source:
Returns:
Type
Promise.<(Object|Error)>