mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 07:43:46 +08:00
fix: update time count
This commit is contained in:
@@ -145,7 +145,8 @@ async function doQueryIssues (owner, repo, labels, state) {
|
|||||||
if (a && b) {
|
if (a && b) {
|
||||||
if (inactiveDay && typeof(inactiveDay) === 'number') {
|
if (inactiveDay && typeof(inactiveDay) === 'number') {
|
||||||
let lastTime = dayjs.utc().subtract(inactiveDay, 'day');
|
let lastTime = dayjs.utc().subtract(inactiveDay, 'day');
|
||||||
if (iss.updated_at.isSameOrBefore(lastTime)) {
|
let updateTime = dayjs.utc(iss.updated_at);
|
||||||
|
if (updateTime.isSameOrBefore(lastTime)) {
|
||||||
issues.push(iss);
|
issues.push(iss);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user