Skip to content

Commit

Permalink
♻️ Rename supabase.ts to supabaseClient.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
usagizmo committed Apr 26, 2024
1 parent ad5b743 commit 3f042dd
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/lib/features/comment/commentStore.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { supabase } from '$lib/supabase';
import { supabase } from '$lib/supabaseClient';
import { userStore } from '$lib/features/user/userStore.svelte';
import type { PostgrestError } from '@supabase/supabase-js';
import { deleteCommentFile, uploadCommentFile } from './commentUtils';
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/features/comment/commentUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { supabase } from '$lib/supabase';
import { supabase } from '$lib/supabaseClient';

export async function uploadCommentFile(uid: string, file: File) {
const path = `${uid}/${Date.now()}_${file.name}`;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/features/user/userStore.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { supabase } from '$lib/supabase';
import { supabase } from '$lib/supabaseClient';
import type { PostgrestError } from '@supabase/supabase-js';

export interface User {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/features/user/userUtils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PostgrestError } from '@supabase/supabase-js';
import type { User } from './userStore.svelte';
import { supabase } from '../../supabase';
import { supabase } from '../../supabaseClient';

export async function getUser(
id: string,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { onMount } from 'svelte';
import type { Snippet } from 'svelte';
import { supabase } from '$lib/supabase';
import { supabase } from '$lib/supabaseClient';
import { userStore } from '$lib/features/user/userStore.svelte';
import Footer from './Footer.svelte';
import HeaderNavigation from './HeaderNavigation.svelte';
Expand Down

0 comments on commit 3f042dd

Please sign in to comment.