-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to include new payable_oracle_address value interception and m…
…ake retries better
- Loading branch information
1 parent
569b5fd
commit 17a23d0
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
server/src/main/kotlin/io/provenance/invoice/web/controllers/FailedEventControllerV1.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.provenance.invoice.web.controllers | ||
|
||
import io.provenance.invoice.config.web.AppRoutes | ||
import io.provenance.invoice.repository.FailedEventRepository | ||
import mu.KLogging | ||
import org.springframework.web.bind.annotation.PathVariable | ||
import org.springframework.web.bind.annotation.PostMapping | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@RestController | ||
@RequestMapping("${AppRoutes.V1}/failed-event", produces = ["application/json"]) | ||
class FailedEventControllerV1(private val failedEventRepository: FailedEventRepository) { | ||
private companion object : KLogging() | ||
|
||
@PostMapping("resolve/{eventHash}") | ||
fun resolveFailedEvent(@PathVariable eventHash: String) { | ||
logger.info("Manually resolving failed event [$eventHash]") | ||
failedEventRepository.markEventProcessed(eventHash) | ||
} | ||
} |