Skip to content

Commit

Permalink
fix error build
Browse files Browse the repository at this point in the history
  • Loading branch information
devsharmagit committed Oct 31, 2024
1 parent e44cf69 commit c52ceb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/actions/user.profile.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ProfileProjectType,
profileSchema,
ProfileSchemaType,
// projectSchemaType,
projectSchemaType,
UserProfileSchemaType,
} from '@/lib/validators/user.profile.validator';
import bcryptjs from 'bcryptjs';
Expand Down Expand Up @@ -228,7 +228,7 @@ export const addUserEducation = withServerActionAsyncCatcher<
});

export const addUserProjects = withServerActionAsyncCatcher<
ProfileProjectType,
projectSchemaType,
ServerActionReturnType
>(async (data) => {
const auth = await getServerSession(authOptions);
Expand Down
2 changes: 1 addition & 1 deletion src/components/user-multistep-form/add-project-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c52ceb4

Please sign in to comment.