Skip to content

Commit 938ab1d

Browse files
committed
Fix MCP NotYetAcceptenceTime condition
1 parent 42e52d0 commit 938ab1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/major_change.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ impl Display for SecondedLogicError {
438438
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
439439
match self {
440440
SecondedLogicError::NotYetAcceptenceTime { accept_at, now } => {
441-
write!(f, "not yet acceptence time ({accept_at} < {now})")
441+
write!(f, "not yet acceptence time ({accept_at} > {now})")
442442
}
443443
SecondedLogicError::IssueNotReady { draft, open } => {
444444
write!(f, "issue is not ready (draft: {draft}; open: {open})")
@@ -509,7 +509,7 @@ async fn process_seconded(
509509
major_change: &MajorChangeSeconded,
510510
now: DateTime<Utc>,
511511
) -> anyhow::Result<()> {
512-
if major_change.accept_at < now {
512+
if major_change.accept_at > now {
513513
anyhow::bail!(SecondedLogicError::NotYetAcceptenceTime {
514514
accept_at: major_change.accept_at,
515515
now

0 commit comments

Comments
 (0)