fix issues in core
This commit is contained in:
@@ -29,7 +29,7 @@ export interface MulterFile {
|
||||
export interface UploadMediaInput {
|
||||
file: MulterFile;
|
||||
uploadedBy: string;
|
||||
metadata?: Record<string, any>;
|
||||
metadata?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface UploadMediaResult {
|
||||
@@ -60,7 +60,11 @@ export class UploadMediaUseCase {
|
||||
|
||||
try {
|
||||
// Upload file to storage service
|
||||
const uploadOptions: { filename: string; mimeType: string; metadata?: Record<string, any> } = {
|
||||
const uploadOptions: {
|
||||
filename: string;
|
||||
mimeType: string;
|
||||
metadata?: Record<string, unknown>;
|
||||
} = {
|
||||
filename: input.file.originalname,
|
||||
mimeType: input.file.mimetype,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user