bknd is dead long live userbase
Run Tests / test (pull_request) Successful in 4m57s

This commit is contained in:
2026-09-27 19:34:06 +05:30
parent 05e0086fcd
commit 0bfcb5ad71
529 changed files with 2385 additions and 2924 deletions
@@ -25,7 +25,7 @@ async function createVersionedApp(
const { version, ...rest } = config;
const db = dummyConnection.kysely as Kysely<any>;
await sql`CREATE TABLE "__bknd" (
await sql`CREATE TABLE "__userbase" (
"id" integer not null primary key autoincrement,
"version" integer,
"type" text,
@@ -35,7 +35,7 @@ async function createVersionedApp(
)`.execute(db);
await db
.insertInto("__bknd")
.insertInto("__userbase")
.values({
version,
type: "config",
@@ -61,7 +61,7 @@ async function getRawConfig(
) {
const db = app.em.connection.kysely;
return await db
.selectFrom("__bknd")
.selectFrom("__userbase")
.selectAll()
.where("version", "=", opts?.version ?? CURRENT_VERSION)
.$if((opts?.types?.length ?? 0) > 0, (qb) => qb.where("type", "in", opts?.types))
@@ -546,7 +546,7 @@
"config": {
"access_key": "123",
"secret_access_key": "123",
"url": "https://123.r2.cloudflarestorage.com/bknd-123"
"url": "https://123.r2.cloudflarestorage.com/userbase-123"
}
}
},