File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const userExperienceInputBaseSchema = z.object({
1515 description : z . string ( ) . max ( 5000 ) . optional ( ) ,
1616 subtitle : z . string ( ) . max ( 1000 ) . optional ( ) ,
1717 startedAt : z . date ( ) ,
18- endedAt : z . date ( ) . optional ( ) ,
18+ endedAt : z . date ( ) . optional ( ) . nullable ( ) . default ( null ) ,
1919 companyId : z . string ( ) . nullable ( ) . optional ( ) . default ( null ) ,
2020 customCompanyName : z
2121 . string ( )
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import {
2626 getNonExistingSkills ,
2727 insertOrIgnoreUserExperienceSkills ,
2828} from '../entity/user/experiences/UserExperienceSkill' ;
29-
3029interface GQLUserExperience {
3130 id : string ;
3231 type : UserExperienceType ;
@@ -184,9 +183,7 @@ const generateExperienceToSave = async <
184183 where : { id : companyId } ,
185184 } ) ;
186185 toSave . customCompanyName = null ;
187- }
188-
189- if ( customCompanyName ) {
186+ } else if ( customCompanyName ) {
190187 const existingCompany = await ctx . con
191188 . getRepository ( Company )
192189 . createQueryBuilder ( 'c' )
You can’t perform that action at this time.
0 commit comments