mirror of
https://github.com/wahyd4/upptime.git
synced 2026-08-09 05:06:31 +10:00
🐛 Ensure commits include " in "
This commit is contained in:
+3
-2
@@ -77,8 +77,9 @@ export const generateSummary = async () => {
|
||||
});
|
||||
const averageTime =
|
||||
history.data
|
||||
.map((commit) =>
|
||||
Number(commit.commit.message.split(" in ")[1].split("ms")[0])
|
||||
.filter((item) => Number(item.commit.message.includes(" in ")))
|
||||
.map((item) =>
|
||||
Number(item.commit.message.split(" in ")[1].split("ms")[0])
|
||||
)
|
||||
.reduce((p, c) => p + c, 0) / history.data.length;
|
||||
pageStatuses.push({
|
||||
|
||||
Reference in New Issue
Block a user