opacacms 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1229,7 +1229,6 @@ async function runAuthMigrations(db) {
|
|
|
1229
1229
|
// src/server/middlewares/database-init.ts
|
|
1230
1230
|
init_system_schema();
|
|
1231
1231
|
function createDatabaseInitMiddleware(config, state) {
|
|
1232
|
-
const supportsAuth = config.db.name === "sqlite" || config.db.name === "postgres" || config.db.name === "d1";
|
|
1233
1232
|
return async (_c, next) => {
|
|
1234
1233
|
if (!state.migrated) {
|
|
1235
1234
|
const isDev = typeof process !== "undefined" && true;
|
|
@@ -1262,7 +1261,7 @@ function createDatabaseInitMiddleware(config, state) {
|
|
|
1262
1261
|
} else {
|
|
1263
1262
|
logger.debug("Automatic schema migrations skipped (Production).");
|
|
1264
1263
|
}
|
|
1265
|
-
if (
|
|
1264
|
+
if (!state.auth) {
|
|
1266
1265
|
state.auth = await createAuth(config);
|
|
1267
1266
|
}
|
|
1268
1267
|
state.migrated = true;
|
package/dist/runtimes/bun.js
CHANGED
package/dist/runtimes/next.js
CHANGED
package/dist/runtimes/node.js
CHANGED
package/dist/server.js
CHANGED
package/package.json
CHANGED