Remove activityType and Id (#1179)

* Remove activityType and Id

* Fix tests

* Fix tests
This commit is contained in:
Charles Bochet
2023-08-11 17:31:54 -07:00
committed by GitHub
parent a30222fe76
commit 35ea6b5a2f
37 changed files with 360 additions and 822 deletions
@@ -29,8 +29,7 @@ export class CompanyRelationsResolver {
where: {
activityTargets: {
some: {
commentableType: 'Company',
commentableId: company.id,
companyId: company.id,
},
},
},
@@ -51,8 +50,7 @@ export class CompanyRelationsResolver {
activity: {
activityTargets: {
some: {
commentableType: 'Company',
commentableId: company.id,
companyId: company.id,
},
},
},
@@ -69,8 +67,7 @@ export class CompanyRelationsResolver {
where: {
activityTargets: {
some: {
commentableType: 'Company',
commentableId: company.id,
companyId: company.id,
},
},
},
@@ -29,8 +29,7 @@ export class PersonRelationsResolver {
where: {
activityTargets: {
some: {
commentableType: 'Person',
commentableId: person.id,
personId: person.id,
},
},
},
@@ -51,8 +50,7 @@ export class PersonRelationsResolver {
activity: {
activityTargets: {
some: {
commentableType: 'Person',
commentableId: person.id,
personId: person.id,
},
},
},
@@ -69,8 +67,7 @@ export class PersonRelationsResolver {
where: {
activityTargets: {
some: {
commentableType: 'Person',
commentableId: person.id,
personId: person.id,
},
},
},