Skip to content

Commit

Permalink
Merge pull request #309 from pixlise/feature/impersonate-user
Browse files Browse the repository at this point in the history
Bump build
  • Loading branch information
pnemere authored Sep 16, 2024
2 parents 764069d + b676432 commit 0f480b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/ws/handlers/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (

func HandleBackupDBReq(req *protos.BackupDBReq, hctx wsHelpers.HandlerContext) (*protos.BackupDBResp, error) {
if len(hctx.Svcs.Config.DataBackupBucket) <= 0 {
err := "PIXLISE Backup bucket not configured!"
err := "PIXLISE Backup bucket not configured"
hctx.Svcs.Log.Errorf(err)
return nil, errors.New(err)
}

if !hctx.Svcs.Config.BackupEnabled {
err := "PIXLISE Backup not enabled!"
err := "PIXLISE Backup not enabled"
hctx.Svcs.Log.Errorf(err)
return nil, errors.New(err)
}
Expand Down Expand Up @@ -126,7 +126,7 @@ func runBackup(dump *mongodump.MongoDump, startTimestamp int64, svcs *services.A
func HandleRestoreDBReq(req *protos.RestoreDBReq, hctx wsHelpers.HandlerContext) (*protos.RestoreDBResp, error) {
// Only allow restore if enabled and we're NOT prod
if !hctx.Svcs.Config.RestoreEnabled {
err := "PIXLISE Restore not enabled!"
err := "PIXLISE Restore not enabled"
hctx.Svcs.Log.Errorf(err)
return nil, errors.New(err)
}
Expand Down

0 comments on commit 0f480b1

Please sign in to comment.