Skip to content

Commit 40f1d66

Browse files
committed
review
1 parent 1b44381 commit 40f1d66

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

apps/roam/src/utils/supabaseContext.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import { Enums } from "@repo/database/types.gen";
77
import { DISCOURSE_CONFIG_PAGE_TITLE } from "~/utils/renderNodeConfigPage";
88
import getBlockProps from "~/utils/getBlockProps";
99
import setBlockProps from "~/utils/setBlockProps";
10-
import {
11-
createClient,
12-
type DGSupabaseClient,
13-
} from "@repo/ui/lib/supabase/client";
14-
import { spaceAnonUserEmail } from "@repo/ui/lib/utils";
10+
import { type DGSupabaseClient } from "@repo/ui/lib/supabase/client";
1511
import {
1612
fetchOrCreateSpaceId,
1713
fetchOrCreatePlatformAccount,

packages/ui/src/lib/supabase/contextFunctions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import {
77

88
type Platform = Enums<"Platform">;
99

10-
const base_url = nextApiRoot() + "/supabase";
10+
const baseUrl = nextApiRoot() + "/supabase";
1111

1212
export const fetchOrCreateSpaceId = async (data: {
1313
password: string;
1414
url: string;
1515
name: string;
1616
platform: Platform;
1717
}): Promise<number> => {
18-
const response = await fetch(base_url + "/space", {
18+
const response = await fetch(baseUrl + "/space", {
1919
method: "POST",
2020
headers: {
2121
"Content-Type": "application/json",

packages/ui/src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function cn(...inputs: ClassValue[]) {
1010
export const spaceAnonUserEmail = (platform: string, space_id: number) =>
1111
`${platform.toLowerCase()}-${space_id}-anon@database.discoursegraphs.com`;
1212

13-
export const IS_DEV = process.env.NODE_ENV !== "production";
13+
const IS_DEV = process.env.NODE_ENV !== "production";
1414

1515
export const nextApiRoot = (): string => {
1616
if (

0 commit comments

Comments
 (0)