chore: clean up types

This commit is contained in:
Stevan Freeborn
2023-09-11 13:49:13 -05:00
parent e29b46cdb1
commit dd17181510
5 changed files with 18 additions and 34 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { v } from 'convex/values';
import { UserDto } from './../src/app/types/index';
import {
QueryCtx,
internalMutation,
@@ -15,7 +16,7 @@ export async function userQuery(ctx: QueryCtx, clerkUserId: string) {
export const getUserByClerkId = query({
args: { clerkUserId: v.string() },
async handler(ctx, args) {
async handler(ctx, args): Promise<UserDto | 'USER_NOT_FOUND'> {
const user = await userQuery(ctx, args.clerkUserId);
if (user === null) {