From 9b94ddff0afe75f3a2db991131935e698887384f Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Nov 2018 13:49:09 +0900 Subject: [PATCH] Clean up --- src/server/api/endpoints/drive/files/upload_from_url.ts | 1 - src/server/api/endpoints/i/update.ts | 3 +-- src/server/api/endpoints/users.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/server/api/endpoints/drive/files/upload_from_url.ts b/src/server/api/endpoints/drive/files/upload_from_url.ts index 35309d623..cacb96fa3 100644 --- a/src/server/api/endpoints/drive/files/upload_from_url.ts +++ b/src/server/api/endpoints/drive/files/upload_from_url.ts @@ -2,7 +2,6 @@ import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id const ms = require('ms'); import { pack } from '../../../../../models/drive-file'; import uploadFromUrl from '../../../../../services/drive/upload-from-url'; -import { ILocalUser } from '../../../../../models/user'; import define from '../../../define'; export const meta = { diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index 7a1624830..4952b2f01 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -1,9 +1,8 @@ import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id'; -import User, { isValidName, isValidDescription, isValidLocation, isValidBirthday, pack, ILocalUser } from '../../../../models/user'; +import User, { isValidName, isValidDescription, isValidLocation, isValidBirthday, pack } from '../../../../models/user'; import { publishMainStream } from '../../../../stream'; import DriveFile from '../../../../models/drive-file'; import acceptAllFollowRequests from '../../../../services/following/requests/accept-all'; -import { IApp } from '../../../../models/app'; import { publishToFollowers } from '../../../../services/i/update'; import define from '../../define'; import getDriveFileUrl from '../../../../misc/get-drive-file-url'; diff --git a/src/server/api/endpoints/users.ts b/src/server/api/endpoints/users.ts index 6fb50e671..203b4a53c 100644 --- a/src/server/api/endpoints/users.ts +++ b/src/server/api/endpoints/users.ts @@ -1,5 +1,5 @@ import $ from 'cafy'; -import User, { pack, ILocalUser } from '../../../models/user'; +import User, { pack } from '../../../models/user'; import define from '../define'; export const meta = {