refactor zo zod and felte

This commit is contained in:
Christian Beutel
2024-12-30 19:52:44 +01:00
parent 75c94a3ce4
commit 871481a84e
45 changed files with 659 additions and 1040 deletions

View File

@@ -16,7 +16,7 @@ export class List {
author?: UserAnonymous;
}
author?: string;
author: string;
constructor(name: string, trails: Trail[], params?: { description?: string, public?: boolean, avatar?: string, author?: string }) {
this.name = name;
@@ -24,8 +24,8 @@ export class List {
this.expand = { trails: trails };
this.trails = trails.map(t => t.id!);
this.description = params?.description;
this.avatar = params?.description;
this.author = params?.author;
this.avatar = params?.avatar;
this.author = params?.author ?? "000000000000000";
}
}