Skip to content

Commit 1310305

Browse files
committed
updated_at_ago to update_at_ago
1 parent fd6b447 commit 1310305

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

models/base_model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function (schema) {
99
return tools.formatDate(this.create_at, true);
1010
};
1111

12-
schema.methods.updated_at_ago = function () {
12+
schema.methods.update_at_ago = function () {
1313
return tools.formatDate(this.update_at, true);
1414
};
1515
};

views/topic/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
<span>
6363
<%= topic.visit_count %> 次浏览
6464
</span>
65-
<% if (topic.create_at_ago() != topic.updated_at_ago()) { %>
65+
<% if (topic.create_at_ago() != topic.update_at_ago()) { %>
6666
<span>
67-
最后一次编辑是 <%= topic.updated_at_ago() %>
67+
最后一次编辑是 <%= topic.update_at_ago() %>
6868
</span>
6969
<% } %>
7070
<% if (topic.tab) { %>

0 commit comments

Comments
 (0)