Skip to content

Commit

Permalink
fix: Publish job listing (#1048)
Browse files Browse the repository at this point in the history
YOLO
  • Loading branch information
sondrealf authored Oct 16, 2024
1 parent 8bc8f6f commit 43b4f32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const CreateJobListingModal: FC<ContextModalProps> = ({ context, id }) =>
const create = useCreateJobListingMutation()
const FormComponent = useJobListingWriteForm({
onSubmit: (data) => {
create.mutate(data)
const createdAt = new Date();
create.mutate({...data, createdAt})
close()
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/job-listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const JobListingWriteSchema = JobListingSchema.partial({
.extend({
companyId: z.string().ulid(),
})
.strict()
.partial()

export type JobListing = z.infer<typeof JobListingSchema>
export type JobListingId = JobListing["id"]
Expand Down

0 comments on commit 43b4f32

Please sign in to comment.