From a96de237ed7c42d002be8852f4e84643be1c5ee1 Mon Sep 17 00:00:00 2001 From: Levichev Dmitry Date: Thu, 6 May 2021 22:22:05 +0300 Subject: [PATCH] Fix GetListByFilter --- CHANGELOG.md | 4 +++- component.json | 2 +- persistence/MemoryPersistence.go | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4aed98..803e020 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Pip.Services Logo
Persistence components for Golang Changelog - +## 1.1.4 (2021-05-06) +### Bug Fixes +- Fix error in GetListByFilter when filter function is nil ## 1.1.3 (2021-04-30) ### Bug Fixes diff --git a/component.json b/component.json index 24ac72c..96bc671 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "pip-services3-data-go", "registry": "github.com/pip-services3-go", - "version": "1.1.3", + "version": "1.1.4", "build": 0 } diff --git a/persistence/MemoryPersistence.go b/persistence/MemoryPersistence.go index b93efa1..848f2c6 100644 --- a/persistence/MemoryPersistence.go +++ b/persistence/MemoryPersistence.go @@ -290,6 +290,7 @@ func (c *MemoryPersistence) GetListByFilter(correlationId string, filterFunc fun } } } else { + results = make([]interface{}, len(c.Items)) copy(results, c.Items) }