From 93372641386a873ae9861e7887a43cfdf7098907 Mon Sep 17 00:00:00 2001 From: Lucas TESSON Date: Fri, 18 Apr 2025 10:24:26 +0200 Subject: [PATCH] impr(api): remove images if none defined --- setup.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.go b/setup.go index 7b084ea..09fd863 100644 --- a/setup.go +++ b/setup.go @@ -94,6 +94,10 @@ func updateSetup(ctx context.Context, client *api.Client, conf *Config) error { }, api.WithContext(ctx)); err != nil { return errors.Wrap(err, "patching CTF logo") } + } else { + if _, err := client.PatchConfigsCTFLogo(&api.PatchConfigsCTFLogo{}, api.WithContext(ctx)); err != nil { + return err + } } // Push small icon @@ -111,6 +115,10 @@ func updateSetup(ctx context.Context, client *api.Client, conf *Config) error { }, api.WithContext(ctx)); err != nil { return errors.Wrap(err, "patching CTF small icon") } + } else { + if _, err := client.PatchConfigsCTFSmallIcon(&api.PatchConfigsCTFLogo{}, api.WithContext(ctx)); err != nil { + return err + } } // Update configs attributes