diff --git a/src/App/Activities/activity.repository.ts b/src/App/Activities/activity.repository.ts index 67ec616f..72359d1b 100644 --- a/src/App/Activities/activity.repository.ts +++ b/src/App/Activities/activity.repository.ts @@ -97,6 +97,7 @@ class ActivityRepository extends Repository { 'activity.type', 'activity.datetime', 'activity.block', + 'w.hidden', ...activityContent, ]) .leftJoin('wiki', 'w', 'w."id" = activity.wikiId') @@ -130,6 +131,7 @@ class ActivityRepository extends Repository { return { ...e, + hidden: e.hidden, content: [ { id: e.wikiId, @@ -149,6 +151,7 @@ class ActivityRepository extends Repository { created: e.a_created, updated: e.a_updated, user: { id: e.userAddress }, + hidden: e.hidden, }, ], } diff --git a/src/App/Activities/activity.resolver.ts b/src/App/Activities/activity.resolver.ts index a3eb3054..bdb115c5 100644 --- a/src/App/Activities/activity.resolver.ts +++ b/src/App/Activities/activity.resolver.ts @@ -117,6 +117,7 @@ class ActivityResolver { ...wiki, created: activity.created_timestamp, updated: activity.updated_timestamp, + hidden: wiki.hidden, })) return updatedContent } diff --git a/src/Database/Entities/activity.entity.ts b/src/Database/Entities/activity.entity.ts index f1f123c6..279e3ed2 100644 --- a/src/Database/Entities/activity.entity.ts +++ b/src/Database/Entities/activity.entity.ts @@ -139,6 +139,9 @@ class Activity { @Column('smallint', { nullable: true }) a_version!: string + + @Field(() => Boolean, { nullable: true }) + hidden?: boolean } export default Activity