chore: use express session upstream

This commit is contained in:
SamTV12345 2025-08-01 22:16:32 +02:00 committed by SamTV12345
parent 9ee09ec8f2
commit c180f55261
2 changed files with 4 additions and 4 deletions

View file

@ -1,13 +1,14 @@
'use strict';
const DB = require('./DB');
const Store = require('@etherpad/express-session').Store;
import expressSession from 'express-session'
const log4js = require('log4js');
const util = require('util');
const logger = log4js.getLogger('SessionStore');
class SessionStore extends Store {
class SessionStore extends expressSession.Store {
/**
* @param {?number} [refresh] - How often (in milliseconds) `touch()` will update a session's
* database record with the cookie's latest expiration time. If the difference between the

View file

@ -8,8 +8,7 @@ import _ from 'underscore';
import cookieParser from 'cookie-parser';
import events from 'events';
import express from 'express';
// @ts-ignore
import expressSession from '@etherpad/express-session';
import expressSession from 'express-session';
import fs from 'fs';
const hooks = require('../../static/js/pluginfw/hooks');
import log4js from 'log4js';