Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Oct 31, 2024
1 parent 450da49 commit e88b74d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/server/api/endpoints/notes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export const meta = {
},
},
} as const;
const searchableTypesForTest = ['public', 'followersAndReacted', 'reactedOnly', 'private', null] as const;
export const paramDef = {
type: 'object',
properties: {
Expand All @@ -144,7 +145,7 @@ export const paramDef = {
reactionAcceptance: { type: 'string', nullable: true, enum: [null, 'likeOnly', 'likeOnlyForRemote', 'nonSensitiveOnly', 'nonSensitiveOnlyForLocalLikeOnlyForRemote'], default: null },
searchableBy: {
type: 'string', nullable: true,
enum: process.env.NODE_ENV === 'test' ? [searchableTypes, null] : searchableTypes,
enum: process.env.NODE_ENV === 'test' ? searchableTypesForTest : searchableTypes,
default: process.env.NODE_ENV === 'test' ? null : 'public' },
disableRightClick: { type: 'boolean', default: false },
noExtractMentions: { type: 'boolean', default: false },
Expand Down

0 comments on commit e88b74d

Please sign in to comment.