mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 07:19:20 +01:00
fix(backup): add vaults to backup
This commit is contained in:
parent
cf16234c52
commit
2fc7f93430
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user