[server] fix primary index creation for couchbase

This commit is contained in:
Lakhan Samani
2023-02-02 12:28:52 +05:30
parent a1df2ce31f
commit b7357dde21
4 changed files with 7 additions and 11 deletions

View File

@@ -3,7 +3,6 @@ package env
import (
"context"
"encoding/json"
"fmt"
"os"
"reflect"
"strconv"
@@ -116,7 +115,6 @@ func PersistEnv() error {
if err != nil || env.EnvData == "" {
// AES encryption needs 32 bit key only, so we chop off last 4 characters from 36 bit uuid
hash := uuid.New().String()[:36-4]
fmt.Println("hash:", hash)
err := memorystore.Provider.UpdateEnvVariable(constants.EnvKeyEncryptionKey, hash)
if err != nil {
log.Debug("Error while updating encryption env variable: ", err)