1
0
forked from mirror/misskey

Update add-file.ts

This commit is contained in:
syuilo 2018-05-26 09:57:31 +09:00 committed by GitHub
parent 01cd3de5b3
commit 317c9308cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ import DriveFile, { IMetadata, getDriveFileBucket, IDriveFile, DriveFileChunk }
import DriveFolder from '../../models/drive-folder'; import DriveFolder from '../../models/drive-folder';
import { pack } from '../../models/drive-file'; import { pack } from '../../models/drive-file';
import event, { publishDriveStream } from '../../publishers/stream'; import event, { publishDriveStream } from '../../publishers/stream';
import { isLocalUser, IRemoteUser } from '../../models/user'; import { isLocalUser, IUser, IRemoteUser } from '../../models/user';
import DriveFileThumbnail, { getDriveFileThumbnailBucket, DriveFileThumbnailChunk } from '../../models/drive-file-thumbnail'; import DriveFileThumbnail, { getDriveFileThumbnailBucket, DriveFileThumbnailChunk } from '../../models/drive-file-thumbnail';
import genThumbnail from '../../drive/gen-thumbnail'; import genThumbnail from '../../drive/gen-thumbnail';
@ -98,7 +98,7 @@ async function deleteOldFile(user: IRemoteUser) {
* @return Created drive file * @return Created drive file
*/ */
export default async function( export default async function(
user: any, user: IUser,
path: string, path: string,
name: string = null, name: string = null,
comment: string = null, comment: string = null,