Skip to content

Commit

Permalink
chore: house keep
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljaijai committed Apr 24, 2024
1 parent f4335a8 commit b560060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions supabase/functions/message-post-creator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { initSupabaseClient } from "../_shared/client.ts"
import { corsHeaders, ENV_IS_LOCAL } from "../_shared/cors.ts"
import { EPostStatus } from "../_shared/types/enums/post/status.ts"
import { initSupabaseServer } from "../_shared/server.ts"
import { createClient } from "https://esm.sh/@supabase/supabase-js@2"

const RESEND_API_KEY = Deno.env.get("RESEND_API_KEY")
const WEB_BASE_URL = Deno.env.get("WEB_BASE_URL")
Expand Down Expand Up @@ -48,8 +47,9 @@ serve(async (req: any) => {
})
}

const { data: usera, error: useree } = await server.auth.getUser(jwt)
const { user } = usera
const {
data: { user },
} = await server.auth.getUser(jwt)

const { data: sender, error } = await server
.from("user")
Expand Down

0 comments on commit b560060

Please sign in to comment.