File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,12 +239,12 @@ export class PrismaProjectService {
239239
240240 // Validate updates
241241 if ( updates . name !== undefined || updates . description !== undefined ) {
242- const validation = ProjectValidator . validateCreate ( {
242+ const validation = ProjectValidator . validateCreateRequest ( {
243243 name : updates . name ?? existingProject . name ,
244244 description : updates . description ?? existingProject . description ,
245245 } ) ;
246246 if ( ! validation . success ) {
247- throw new Error ( `Invalid project data: ${ validation . error . issues . map ( ( i : any ) => i . message ) . join ( ', ' ) } ` ) ;
247+ throw new Error ( `Invalid project data: ${ validation . errors . map ( ( i : any ) => i . message ) . join ( ', ' ) } ` ) ;
248248 }
249249 }
250250
You can’t perform that action at this time.
0 commit comments