fix(options): null pointer

This commit is contained in:
Denis Gukov 2024-07-10 01:04:32 +05:00
parent 3e6d1bdd5e
commit 07624fe341

View File

@ -24,6 +24,7 @@ func (d *SqlDb) SetOption(key string, value string) error {
func (d *SqlDb) GetOptions(params db.RetrieveQueryParams) (res map[string]string, err error) {
var options []db.Option
res = make(map[string]string)
if params.Filter != "" {
err = db.ValidateOptionKey(params.Filter)