summaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2024-01-31 15:55:12 +0100
committerGitHub <noreply@github.com>2024-01-31 15:55:12 +0100
commitadc3598a755b43e3911266d7fa575c121e16613d (patch)
treeba5982153851b0b1267daae8d1a152d85448cd22 /routers/api/v1
parentFix doc img path in profile readme (#28994) (diff)
downloadforgejo-adc3598a755b43e3911266d7fa575c121e16613d.tar.xz
forgejo-adc3598a755b43e3911266d7fa575c121e16613d.zip
Fix an actions schedule bug (#28942)
In #28691, schedule plans will be deleted when a repo's actions unit is disabled. But when the unit is enabled, the schedule plans won't be created again. This PR fixes the bug. The schedule plans will be created again when the actions unit is re-enabled
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/repo/wiki.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go
index ba3e978a83..4f27500496 100644
--- a/routers/api/v1/repo/wiki.go
+++ b/routers/api/v1/repo/wiki.go
@@ -203,7 +203,7 @@ func getWikiPage(ctx *context.APIContext, wikiName wiki_service.WebPath) *api.Wi
}
return &api.WikiPage{
- WikiPageMetaData: convert.ToWikiPageMetaData(wikiName, lastCommit, ctx.Repo.Repository),
+ WikiPageMetaData: wiki_service.ToWikiPageMetaData(wikiName, lastCommit, ctx.Repo.Repository),
ContentBase64: content,
CommitCount: commitsCount,
Sidebar: sidebarContent,
@@ -333,7 +333,7 @@ func ListWikiPages(ctx *context.APIContext) {
ctx.Error(http.StatusInternalServerError, "WikiFilenameToName", err)
return
}
- pages = append(pages, convert.ToWikiPageMetaData(wikiName, c, ctx.Repo.Repository))
+ pages = append(pages, wiki_service.ToWikiPageMetaData(wikiName, c, ctx.Repo.Repository))
}
ctx.SetTotalCountHeader(int64(len(entries)))