Remove activityType and Id (#1179)

* Remove activityType and Id

* Fix tests

* Fix tests
This commit is contained in:
Charles Bochet
2023-08-12 02:31:54 +02:00
committed by GitHub
parent a30222fe76
commit 35ea6b5a2f
37 changed files with 360 additions and 822 deletions

View File

@ -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,
},
},
},

View File

@ -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,
},
},
},