This commit is contained in:
@@ -136,7 +136,7 @@ describe("AppAuth", () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("registers auth middleware for bknd routes only", async () => {
|
||||
test("registers auth middleware for userbase routes only", async () => {
|
||||
const app = createApp({
|
||||
config: {
|
||||
auth: {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@ import { EntityManager } from "data/entities/EntityManager";
|
||||
import { Module, type ModuleBuildContext } from "modules/Module";
|
||||
import { getDummyConnection } from "../helper";
|
||||
import { ModuleHelper } from "modules/ModuleHelper";
|
||||
import { DebugLogger, McpServer } from "bknd/utils";
|
||||
import { DebugLogger, McpServer } from "userbase/utils";
|
||||
|
||||
export function makeCtx(overrides?: Partial<ModuleBuildContext>): ModuleBuildContext {
|
||||
const { dummyConnection } = getDummyConnection();
|
||||
|
||||
Reference in New Issue
Block a user