diff --git a/src/actions/user.profile.actions.ts b/src/actions/user.profile.actions.ts index f1a24e9e..fe7c33cd 100644 --- a/src/actions/user.profile.actions.ts +++ b/src/actions/user.profile.actions.ts @@ -9,7 +9,7 @@ import { ProfileProjectType, profileSchema, ProfileSchemaType, - // projectSchemaType, + projectSchemaType, UserProfileSchemaType, } from '@/lib/validators/user.profile.validator'; import bcryptjs from 'bcryptjs'; @@ -228,7 +228,7 @@ export const addUserEducation = withServerActionAsyncCatcher< }); export const addUserProjects = withServerActionAsyncCatcher< - ProfileProjectType, + projectSchemaType, ServerActionReturnType >(async (data) => { const auth = await getServerSession(authOptions); diff --git a/src/components/user-multistep-form/add-project-form.tsx b/src/components/user-multistep-form/add-project-form.tsx index ad1bfabb..16a33936 100644 --- a/src/components/user-multistep-form/add-project-form.tsx +++ b/src/components/user-multistep-form/add-project-form.tsx @@ -120,7 +120,7 @@ export const AddProject = () => { setIsLoading(true); data.projectThumbnail = (await submitImage(file)) ?? ''; // todo isFeature - const response = await addUserProjects({ ...data, isFeature: false }); + const response = await addUserProjects({ ...data }); if (!response.status) { return toast({ title: response.message || 'Error',