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

This commit is contained in:
Tera << 8 2024-12-26 22:54:05 -05:00
parent c2eb2d15aa
commit d334878599
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
4 changed files with 8 additions and 5 deletions

View file

@ -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 {