From b1cc8870275289bb8e672954d25f32ad63733a66 Mon Sep 17 00:00:00 2001
From: Valera Shaitorov <shaitorov@perx.ru>
Date: Thu, 25 May 2023 20:11:01 +0700
Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81?=
 =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F?=
 =?UTF-8?q?=20=D0=B8=D0=B7=20collections/utils=20=D0=B2=20perxis=20SDK?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pkg/collections/collection.go | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/pkg/collections/collection.go b/pkg/collections/collection.go
index 5b3c5dd3..39b082ef 100644
--- a/pkg/collections/collection.go
+++ b/pkg/collections/collection.go
@@ -178,3 +178,11 @@ func (c Collection) IsNoData() bool {
 func (c Collection) IsView() bool {
 	return c.View != nil
 }
+
+func GetCollectionsIDs(collections []*Collection) []string {
+	res := make([]string, len(collections))
+	for i, c := range collections {
+		res[i] = c.ID
+	}
+	return res
+}
-- 
GitLab