fix issues in core

This commit is contained in:
2025-12-23 15:38:50 +01:00
parent df5c20c5cc
commit 120d3bb1a1
125 changed files with 1005 additions and 793 deletions

View File

@@ -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');