Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix: Actualite
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Dec 30, 2020
1 parent 062c3f8 commit 2f6db3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/entities/News/Actualite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ export default class Actualite {
public codeEmetteur: number
public date: Date
public uid: string
public titre: string
private errmsg: string | null

constructor (article: {
errmsg: string | null
type: string
auteur: string
codeEmetteur: string
titre: string
date: number
uid: string
}) {
this.errmsg = article.errmsg
this.type = article.type
this.auteur = article.auteur
this.codeEmetteur = parseInt(article.codeEmetteur)
this.titre = article.titre
this.date = new Date(article.date)
this.uid = article.uid
}
Expand Down

0 comments on commit 2f6db3a

Please sign in to comment.