rafaelrpinto/dynamodb-store

View on GitHub

Showing 1 of 1 total issue

Function touch has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  touch(sid: string, sess: Object, callback: Function): void {
    try {
      if (!sess.updated || Number(sess.updated) + this.touchInterval <= Date.now()) {
        const sessionId = this.getSessionId(sid);
        const expires = this.getExpirationDate(sess);
Severity: Minor
Found in lib/DynamoDBStore.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language