Skip to content

Commit

Permalink
fix: add updatedAt variable to the article template to get the last u…
Browse files Browse the repository at this point in the history
…pdated timestamp of the library item
  • Loading branch information
sywhb committed Jan 17, 2024
1 parent a21d8c5 commit ac7ea71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export type ArticleView =
state: string
dateArchived?: string
image?: string
updatedAt: string
}
| FunctionMap

Expand Down Expand Up @@ -252,6 +253,7 @@ export const renderArticleContnet = async (
state: getArticleState(article),
dateArchived: article.archivedAt,
image: article.image,
updatedAt: article.updatedAt,
...functionMap,
}

Expand Down

0 comments on commit ac7ea71

Please sign in to comment.