diff options
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -8,8 +8,10 @@ import ( "fmt" "os" "path/filepath" + "time" "go.wit.com/log" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) func (f *Forge) ConfigSave() error { @@ -28,6 +30,11 @@ func (f *Forge) ConfigSave() error { } } if f.Repos != nil { + if f.HasFullScan() { + f.Repos.HasFullScan = true + t := time.Now() + f.Repos.FullScan = timestamppb.New(t) + } if e := f.Repos.ConfigSave(); e != nil { log.Info("forge.Repos.ConfigSave() error", e) err = e |
