Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3803 use email visibility to display only the shared information backend #3871

Conversation

bosiraphael
Copy link
Contributor

Closes #3803

@@ -12,6 +13,10 @@ export class TimelineThread {
@Field()
read: boolean;

@Field()
@IsEnum(['metadata', 'subject', 'share_everything'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bosiraphael actually there is nothing to validate here, I originally thought this was an input type. IsEnum won't help you there.
If you want a proper enum type for your graphql schema, you can declare your type like this

export enum TimelineThreadVisibility {
  Metadata = 'metadata',
  Subject = 'subject',
  ShareEverything = 'share_everything',
}

then register it like thi

registerEnumType(TimelineThreadVisibility, {
  name: 'TimelineThreadVisibility',
});

@bosiraphael bosiraphael merged commit 3831ddc into main Feb 7, 2024
12 of 13 checks passed
@bosiraphael bosiraphael deleted the 3803-use-email-visibility-to-display-only-the-shared-information-backend branch February 7, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use email visibility to display only the shared information (backend)
2 participants