From fc9907669b856163f9a66f23c0d72a0093142b91 Mon Sep 17 00:00:00 2001 From: alexeh Date: Sun, 1 Sep 2024 07:40:50 +0200 Subject: [PATCH] restore session --- src/modules/adminmodule/admin.module.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/adminmodule/admin.module.ts b/src/modules/adminmodule/admin.module.ts index a255b19..f97bd4d 100644 --- a/src/modules/adminmodule/admin.module.ts +++ b/src/modules/adminmodule/admin.module.ts @@ -5,7 +5,6 @@ import * as AdminJSTypeorm from '@adminjs/typeorm'; import { User } from '../../entities/user.entity.js'; import { Post } from '../../entities/post.entity.js'; import { Comment } from '../../entities/comment.entity.js'; -import * as process from 'node:process'; import importExportFeature from '@adminjs/import-export'; AdminJS.registerAdapter({ @@ -43,11 +42,11 @@ const componentLoader = new ComponentLoader(); cookiePassword: process.env.USERNAME, cookieName: process.env.PASSWORD, }, - // sessionOptions: { - // resave: true, - // saveUninitialized: true, - // secret: 'secret', - // }, + sessionOptions: { + resave: true, + saveUninitialized: true, + secret: 'secret', + }, }; }, }),