@@ -3856,11 +3856,11 @@ class UserGroupIDBClass extends BaseIDBModelClass<"UserGroup"> {
3856
3856
) ;
3857
3857
}
3858
3858
}
3859
- if ( record . groupId !== undefined ) {
3859
+ if ( query . data . groupId !== undefined ) {
3860
3860
const related = await this . client . group . findUnique ( { where : { id : record . groupId } } , tx ) ;
3861
3861
if ( ! related ) throw new Error ( "Related record not found" ) ;
3862
3862
}
3863
- if ( record . userId !== undefined ) {
3863
+ if ( query . data . userId !== undefined ) {
3864
3864
const related = await this . client . user . findUnique ( { where : { id : record . userId } } , tx ) ;
3865
3865
if ( ! related ) throw new Error ( "Related record not found" ) ;
3866
3866
}
@@ -4472,7 +4472,7 @@ class ProfileIDBClass extends BaseIDBModelClass<"Profile"> {
4472
4472
) ;
4473
4473
}
4474
4474
}
4475
- if ( record . userId !== undefined ) {
4475
+ if ( query . data . userId !== undefined ) {
4476
4476
const related = await this . client . user . findUnique ( { where : { id : record . userId } } , tx ) ;
4477
4477
if ( ! related ) throw new Error ( "Related record not found" ) ;
4478
4478
}
@@ -5408,7 +5408,7 @@ class PostIDBClass extends BaseIDBModelClass<"Post"> {
5408
5408
) ;
5409
5409
}
5410
5410
}
5411
- if ( record . authorId !== undefined && record . authorId !== null ) {
5411
+ if ( query . data . authorId !== undefined && record . authorId !== null ) {
5412
5412
const related = await this . client . user . findUnique ( { where : { id : record . authorId } } , tx ) ;
5413
5413
if ( ! related ) throw new Error ( "Related record not found" ) ;
5414
5414
}
@@ -6192,11 +6192,11 @@ class CommentIDBClass extends BaseIDBModelClass<"Comment"> {
6192
6192
) ;
6193
6193
}
6194
6194
}
6195
- if ( record . postId !== undefined ) {
6195
+ if ( query . data . postId !== undefined ) {
6196
6196
const related = await this . client . post . findUnique ( { where : { id : record . postId } } , tx ) ;
6197
6197
if ( ! related ) throw new Error ( "Related record not found" ) ;
6198
6198
}
6199
- if ( record . userId !== undefined ) {
6199
+ if ( query . data . userId !== undefined ) {
6200
6200
const related = await this . client . user . findUnique ( { where : { id : record . userId } } , tx ) ;
6201
6201
if ( ! related ) throw new Error ( "Related record not found" ) ;
6202
6202
}
@@ -7922,14 +7922,14 @@ class FatherIDBClass extends BaseIDBModelClass<"Father"> {
7922
7922
record . userId = null ;
7923
7923
}
7924
7924
}
7925
- if ( record . motherFirstName !== undefined ) {
7925
+ if ( query . data . motherFirstName !== undefined ) {
7926
7926
const related = await this . client . mother . findUnique (
7927
7927
{ where : { firstName_lastName : { firstName : record . motherFirstName , lastName : record . motherLastName } } } ,
7928
7928
tx ,
7929
7929
) ;
7930
7930
if ( ! related ) throw new Error ( "Related record not found" ) ;
7931
7931
}
7932
- if ( record . userId !== undefined && record . userId !== null ) {
7932
+ if ( query . data . userId !== undefined && record . userId !== null ) {
7933
7933
const related = await this . client . user . findUnique ( { where : { id : record . userId } } , tx ) ;
7934
7934
if ( ! related ) throw new Error ( "Related record not found" ) ;
7935
7935
}
@@ -9156,7 +9156,7 @@ class MotherIDBClass extends BaseIDBModelClass<"Mother"> {
9156
9156
record . userId = null ;
9157
9157
}
9158
9158
}
9159
- if ( record . userId !== undefined && record . userId !== null ) {
9159
+ if ( query . data . userId !== undefined && record . userId !== null ) {
9160
9160
const related = await this . client . user . findUnique ( { where : { id : record . userId } } , tx ) ;
9161
9161
if ( ! related ) throw new Error ( "Related record not found" ) ;
9162
9162
}
@@ -10283,18 +10283,18 @@ class ChildIDBClass extends BaseIDBModelClass<"Child"> {
10283
10283
) ;
10284
10284
}
10285
10285
}
10286
- if ( record . userId !== undefined && record . userId !== null ) {
10286
+ if ( query . data . userId !== undefined && record . userId !== null ) {
10287
10287
const related = await this . client . user . findUnique ( { where : { id : record . userId } } , tx ) ;
10288
10288
if ( ! related ) throw new Error ( "Related record not found" ) ;
10289
10289
}
10290
- if ( record . fatherFirstName !== undefined ) {
10290
+ if ( query . data . fatherFirstName !== undefined ) {
10291
10291
const related = await this . client . father . findUnique (
10292
10292
{ where : { firstName_lastName : { firstName : record . fatherFirstName , lastName : record . fatherLastName } } } ,
10293
10293
tx ,
10294
10294
) ;
10295
10295
if ( ! related ) throw new Error ( "Related record not found" ) ;
10296
10296
}
10297
- if ( record . motherFirstName !== undefined ) {
10297
+ if ( query . data . motherFirstName !== undefined ) {
10298
10298
const related = await this . client . mother . findUnique (
10299
10299
{ where : { firstName_lastName : { firstName : record . motherFirstName , lastName : record . motherLastName } } } ,
10300
10300
tx ,
0 commit comments