fix(backend): don't crash if redis isn't set, use tx in CreateMember

This commit is contained in:
Sam 2022-11-24 13:41:36 +01:00
parent 3b64ba33f6
commit d58208f5ac
3 changed files with 23 additions and 2 deletions

View file

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