From b7c0e26da95be163ec57d2142e5a218f7032cfb3 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Thu, 28 Jul 2022 13:19:47 -0400 Subject: [PATCH] fix: lint error in create.ts --- packages/backend/src/server/api/endpoints/notes/create.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index 192e19bd2..2f3d47c12 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -5,11 +5,10 @@ import { Users, DriveFiles, Notes, Channels, Blockings } from '@/models/index.js import { DriveFile } from '@/models/entities/drive-file.js'; import { Note } from '@/models/entities/note.js'; import { Channel } from '@/models/entities/channel.js'; -import { MAX_NOTE_TEXT_LENGTH } from '@/const.js'; +import { MAX_NOTE_TEXT_LENGTH, HOUR } from '@/const.js'; import { noteVisibilities } from '../../../../types.js'; import { ApiError } from '../../error.js'; import define from '../../define.js'; -import { HOUR } from '@/const.js'; import { getNote } from '../../common/getters.js'; export const meta = { @@ -91,7 +90,7 @@ export const paramDef = { type: 'object', properties: { visibility: { - description: 'The visibility of the new note. Must be the same or more restrictive than a replied to or quoted note.' + description: 'The visibility of the new note. Must be the same or more restrictive than a replied to or quoted note.', type: 'string', enum: noteVisibilities, default: 'public',