initial commit
This commit is contained in:
10
convex/users.ts
Normal file
10
convex/users.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Id } from "./_generated/dataModel"
|
||||
import { query } from "./_generated/server"
|
||||
|
||||
export const getCurrentUser = query({
|
||||
handler: async (ctx) => {
|
||||
return await ctx.db.get(
|
||||
"j574n657f521n19v1stnr88ysd7qhbs1" as Id<"users">,
|
||||
)
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user