fix issues in core
This commit is contained in:
@@ -19,7 +19,7 @@ export interface MediaProps {
|
||||
type: MediaType;
|
||||
uploadedBy: string;
|
||||
uploadedAt: Date;
|
||||
metadata?: Record<string, any> | undefined;
|
||||
metadata?: Record<string, unknown> | undefined;
|
||||
}
|
||||
|
||||
export class Media implements IEntity<string> {
|
||||
@@ -32,7 +32,7 @@ export class Media implements IEntity<string> {
|
||||
readonly type: MediaType;
|
||||
readonly uploadedBy: string;
|
||||
readonly uploadedAt: Date;
|
||||
readonly metadata?: Record<string, any> | undefined;
|
||||
readonly metadata?: Record<string, unknown> | undefined;
|
||||
|
||||
private constructor(props: MediaProps) {
|
||||
this.id = props.id;
|
||||
@@ -56,7 +56,7 @@ export class Media implements IEntity<string> {
|
||||
url: string;
|
||||
type: MediaType;
|
||||
uploadedBy: string;
|
||||
metadata?: Record<string, any>;
|
||||
metadata?: Record<string, unknown>;
|
||||
}): Media {
|
||||
if (!props.filename) {
|
||||
throw new Error('Filename is required');
|
||||
|
||||
Reference in New Issue
Block a user