mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Update add-file.ts
This commit is contained in:
parent
edf22de5fb
commit
89f604afdc
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ import DriveFile, { IMetadata, getDriveFileBucket, IDriveFile, DriveFileChunk }
|
|||
import DriveFolder from '../../models/drive-folder';
|
||||
import { pack } from '../../models/drive-file';
|
||||
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 genThumbnail from '../../drive/gen-thumbnail';
|
||||
|
||||
|
@ -98,7 +98,7 @@ async function deleteOldFile(user: IRemoteUser) {
|
|||
* @return Created drive file
|
||||
*/
|
||||
export default async function(
|
||||
user: any,
|
||||
user: IUser,
|
||||
path: string,
|
||||
name: string = null,
|
||||
comment: string = null,
|
||||
|
|
Loading…
Reference in a new issue