feat: Implement analysis job tracking with progress timeline and enhanced data source status management.
This commit is contained in:
11
convex/users.ts
Normal file
11
convex/users.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { query } from "./_generated/server";
|
||||
import { getAuthUserId } from "@convex-dev/auth/server";
|
||||
|
||||
export const getCurrent = query({
|
||||
args: {},
|
||||
handler: async (ctx) => {
|
||||
const userId = await getAuthUserId(ctx);
|
||||
if (!userId) return null;
|
||||
return await ctx.db.get(userId);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user