fix(backend): don't crash if redis isn't set, use tx in CreateMember
This commit is contained in:
parent
3b64ba33f6
commit
d58208f5ac
3 changed files with 23 additions and 2 deletions
|
@ -41,7 +41,8 @@ func New() (*DB, error) {
|
|||
return nil, errors.Wrap(err, "creating redis client")
|
||||
}
|
||||
} else {
|
||||
log.Warn("$REDIS was empty! ANY FUNCTIONALITY using redis will CRASH the server")
|
||||
log.Warn("$REDIS was empty! Any functionality using Redis (such as authentication) will not work")
|
||||
redis = &dummyRedis{}
|
||||
}
|
||||
|
||||
minioClient, err := minio.New(os.Getenv("MINIO_ENDPOINT"), &minio.Options{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue