Switch back to older version of safe_mongo, since the new one is esm only
All checks were successful
CI / build (push) Successful in 21m31s

This commit is contained in:
Fabian Stamm
2023-11-29 12:04:45 +01:00
parent 58e4ab1886
commit 60b0c2f577
4 changed files with 49 additions and 9 deletions

View File

@ -5,6 +5,7 @@ database=openauth
[core]
name = OpenAuthService
secret = dev
url=http://localhost:3000
[web]
port = 3000

View File

@ -48,7 +48,7 @@
"@hibas123/nodeloggingserver_client": "^1.1.2",
"@hibas123/openauth-internalapi": "workspace:^",
"@hibas123/openauth-views-v1": "workspace:^",
"@hibas123/safe_mongo": "^2.1.0",
"@hibas123/safe_mongo": "2.0.1",
"@simplewebauthn/server": "^7.2.0",
"body-parser": "^1.20.2",
"compression": "^1.7.4",

View File

@ -46,7 +46,7 @@ export default class Web {
resave: false,
saveUninitialized: false,
store: MongoStore.create({
client: DB.getClient(),
client: DB.getClient() as any,
dbName: DB.db.databaseName,
collectionName: "sessions",
autoRemove: "native",