fix(backup): add vaults to backup

This commit is contained in:
Denis Gukov 2024-10-29 17:45:05 +05:00
parent cf16234c52
commit 2fc7f93430

View File

@ -123,6 +123,15 @@ func (b *BackupDB) load(projectID int, store db.Store) (err error) {
return
}
for i := range b.templates {
var vaults []db.TemplateVault
vaults, err = store.GetTemplateVaults(b.templates[i].ProjectID, b.templates[i].ID)
if err != nil {
return
}
b.templates[i].Vaults = vaults
}
b.repositories, err = store.GetRepositories(projectID, db.RetrieveQueryParams{})
if err != nil {
return