From 57709975d549441118d7cca420bf3b08f96a4322 Mon Sep 17 00:00:00 2001 From: Juiced66 <80784430+Juiced66@users.noreply.github.com> Date: Thu, 30 Nov 2023 07:13:01 +0100 Subject: [PATCH] fix: (ProfilePolicy.ts) restrictedTo was mistyped (#733) Co-authored-by: Juiced66 --- src/types/ProfilePolicy.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/types/ProfilePolicy.ts b/src/types/ProfilePolicy.ts index 89ada2e60..45986ff1e 100644 --- a/src/types/ProfilePolicy.ts +++ b/src/types/ProfilePolicy.ts @@ -24,17 +24,19 @@ export type ProfilePolicy = { /** * Optional array of restrictions on which the rights are gonne be applied */ - restrictedTo?: { - /** - * Index name. - * Rights will only be applied on this index. - */ - index: string; + restrictedTo?: [ + { + /** + * Index name. + * Rights will only be applied on this index. + */ + index: string; - /** - * Collection names. - * Rights will only be applied on those collections. - */ - collections?: Array; - }; + /** + * Collection names. + * Rights will only be applied on those collections. + */ + collections?: Array; + } + ]; };