fix issues in core

This commit is contained in:
2025-12-23 11:25:08 +01:00
parent 1efd971032
commit 2854ae3c5c
113 changed files with 1142 additions and 458 deletions

View File

@@ -19,7 +19,7 @@ export interface MediaProps {
type: MediaType;
uploadedBy: string;
uploadedAt: Date;
metadata?: Record<string, any>;
metadata?: Record<string, any> | 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>;
readonly metadata?: Record<string, any> | undefined;
private constructor(props: MediaProps) {
this.id = props.id;

View File

@@ -1,4 +1,4 @@
import { MediaUrl } from '../../../../../core/media/domain/value-objects/MediaUrl';
import { MediaUrl } from './MediaUrl';
describe('MediaUrl', () => {
it('creates from valid http/https URLs', () => {