feature: Fixes all backup and API related things to make everything work in production.
All checks were successful
Release code / build (push) Successful in 14m13s
All checks were successful
Release code / build (push) Successful in 14m13s
This commit is contained in:
parent
c2eb2d15aa
commit
d334878599
4 changed files with 8 additions and 5 deletions
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"compress/gzip"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
|
@ -249,7 +250,7 @@ func backupRestoreEntrypoint(cCtx *cli.Context) error {
|
|||
Name: backend.Name,
|
||||
Description: backend.Description,
|
||||
Backend: backend.Backend,
|
||||
BackendParameters: backend.BackendParameters,
|
||||
BackendParameters: base64.StdEncoding.EncodeToString([]byte(backend.BackendParameters)),
|
||||
}
|
||||
|
||||
if err := dbcore.DB.Create(backendDatabase).Error; err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue