Skip to content

Disambiguate NCronJob instant runs - #546

Merged
linkdotnet merged 1 commit into
masterfrom
copilot/fix-ambiguous-ncronjob-definition
Sep 17, 2026
Merged

linkdotnet merged 1 commit into
masterfrom
copilot/fix-ambiguous-ncronjob-definition

Conversation

@linkdotnet

Copy link
Copy Markdown
Owner

No description provided.

Co-authored-by: linkdotnet <26365461+linkdotnet@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 17, 2026 11:14
@linkdotnet
linkdotnet merged commit 93317b0 into master Sep 17, 2026
4 checks passed
@linkdotnet
linkdotnet deleted the copilot/fix-ambiguous-ncronjob-definition branch September 17, 2026 11:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is minimal, consistent with the repository’s NCronJob usage requirements, and does not introduce behavioral risk beyond resolving the overload ambiguity.

Pull request overview

This PR updates the admin Settings page to disambiguate NCronJob instant job triggers by explicitly passing a null job parameter, aligning the call site with the required overload for the current NCronJob version.

Changes:

  • Updated RunInstantJob<TJob>() invocations to RunInstantJob<TJob>(parameter: null) for jobs that do not require a parameter.
  • Applies this fix to both the visit transformer and broken link checker instant-run buttons.
File summaries
File Description
src/LinkDotNet.Blog.Web/Features/Admin/Settings/SettingsPage.razor Explicitly passes parameter: null to RunInstantJob to avoid overload ambiguity when triggering instant jobs from the settings UI.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants