Fixed relations (#9227)
Follow-up : Fixed relations eager load on refactored hooks from PR https://github.com/twentyhq/twenty/pull/8695
This commit is contained in:
@ -35,7 +35,7 @@ export class BeforeDeleteOneRelation implements BeforeDeleteOneHook {
|
|||||||
workspaceId,
|
workspaceId,
|
||||||
id: instance.id.toString(),
|
id: instance.id.toString(),
|
||||||
},
|
},
|
||||||
relations: ['fromFieldMetafata', 'toFieldMetadata'],
|
relations: ['fromFieldMetadata', 'toFieldMetadata'],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!relationMetadata) {
|
if (!relationMetadata) {
|
||||||
|
|||||||
Reference in New Issue
Block a user