Commit 96da608e authored by mercury233's avatar mercury233

fix updated_at

parent c7319465
...@@ -58,6 +58,7 @@ export class App { ...@@ -58,6 +58,7 @@ export class App {
homepage: string; homepage: string;
developers: { name: string, url: string }[]; developers: { name: string, url: string }[];
released_at: Date; released_at: Date;
updated_at: Date;
category: Category; category: Category;
parent?: App; parent?: App;
...@@ -167,6 +168,7 @@ export class App { ...@@ -167,6 +168,7 @@ export class App {
this.description = app.description; this.description = app.description;
this.developers = app.developers; this.developers = app.developers;
this.released_at = app.released_at; this.released_at = app.released_at;
this.updated_at = app.updated_at;
this.author = app.author; this.author = app.author;
this.homepage = app.homepage; this.homepage = app.homepage;
this.category = Category[<string>app.category]; this.category = Category[<string>app.category];
......
...@@ -278,6 +278,9 @@ export class AppsService { ...@@ -278,6 +278,9 @@ export class AppsService {
if (app.released_at) { if (app.released_at) {
app.released_at = new Date(app.released_at); app.released_at = new Date(app.released_at);
} }
if (app.updated_at) {
app.updated_at = new Date(app.updated_at);
}
if (app.news) { if (app.news) {
for (let item of app.news) { for (let item of app.news) {
item.updated_at = new Date(item.updated_at); item.updated_at = new Date(item.updated_at);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment