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 8, 2024
1 parent 7b36104 commit a45bdb1
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 @@ -76,6 +76,7 @@ export type ArticleView =
readLength?: number
state: string
dateArchived?: string
updatedAt: string
}
| FunctionMap

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

Expand Down

0 comments on commit a45bdb1

Please sign in to comment.