From a45bdb1df3375b02b6ea5e4fcab49f268f15b597 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 8 Jan 2024 15:43:13 +0800 Subject: [PATCH] fix: add updatedAt variable to the article template to get the last updated timestamp of the library item --- src/settings/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings/template.ts b/src/settings/template.ts index 4b739ac..fd90646 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -76,6 +76,7 @@ export type ArticleView = readLength?: number state: string dateArchived?: string + updatedAt: string } | FunctionMap @@ -250,6 +251,7 @@ export const renderArticleContnet = async ( readLength, state: getArticleState(article), dateArchived: article.archivedAt, + updatedAt: article.updatedAt, ...functionMap, }