Merge pull request #255 from stgraber/main

incus-osd/api/images: Replace Channel with Channels
This commit is contained in:
Stéphane Graber
2025-08-14 01:49:33 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ type UpdateFull struct {
type Update struct {
Format string `json:"format"`
Channel string `json:"channel"`
Channels []string `json:"channel"`
Files []UpdateFile `json:"files"`
Origin string `json:"origin"`
PublishedAt time.Time `json:"published_at"`

View File

@@ -83,7 +83,7 @@ func do(ctx context.Context) error {
metaUpdate := apiupdate.Update{
Format: "1.0",
Channel: updateChannel,
Channels: []string{updateChannel},
Files: []apiupdate.UpdateFile{},
Origin: updateOrigin,
PublishedAt: time.Now(),