fix: lint error in create.ts

This commit is contained in:
Norm 2022-07-28 13:19:47 -04:00
parent 9abbe94108
commit b7c0e26da9
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -5,11 +5,10 @@ import { Users, DriveFiles, Notes, Channels, Blockings } from '@/models/index.js
import { DriveFile } from '@/models/entities/drive-file.js'; import { DriveFile } from '@/models/entities/drive-file.js';
import { Note } from '@/models/entities/note.js'; import { Note } from '@/models/entities/note.js';
import { Channel } from '@/models/entities/channel.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 { noteVisibilities } from '../../../../types.js';
import { ApiError } from '../../error.js'; import { ApiError } from '../../error.js';
import define from '../../define.js'; import define from '../../define.js';
import { HOUR } from '@/const.js';
import { getNote } from '../../common/getters.js'; import { getNote } from '../../common/getters.js';
export const meta = { export const meta = {
@ -91,7 +90,7 @@ export const paramDef = {
type: 'object', type: 'object',
properties: { properties: {
visibility: { 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', type: 'string',
enum: noteVisibilities, enum: noteVisibilities,
default: 'public', default: 'public',