fix type error
This commit is contained in:
parent
e93c892c53
commit
2327eed7e2
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export class Post {
|
||||||
this.authorName = authorName
|
this.authorName = authorName
|
||||||
}
|
}
|
||||||
|
|
||||||
public static fromDto(dto: components['schemas']['PublicPostDto']): Post {
|
public static fromDto(dto: components['schemas']['PostDto']): Post {
|
||||||
return new Post(
|
return new Post(
|
||||||
dto.postId,
|
dto.postId,
|
||||||
dto.content,
|
dto.content,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue