Skip to content

Commit

Permalink
Override Post.update in Article modal
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Jun 16, 2024
1 parent cd85a87 commit ca83929
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/article.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,11 @@ export class Article extends Post<ArticleMeta> {

return new Article(services, post);
}

static override update(services: Services, id: UUID, input: InsertArticle) {
return Post.update<ArticleMeta>(services, id, {
...input,
type: "article",
});
}
}

0 comments on commit ca83929

Please sign in to comment.