From 44c0e60cb0cf22b719b2eb536a67f35701855412 Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Fri, 27 Mar 2020 08:21:46 +0100 Subject: [PATCH] fix: correct model name --- .../src/handler/plugins/models/contentModelGroup.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-headless-cms/src/handler/plugins/models/contentModelGroup.model.ts b/packages/api-headless-cms/src/handler/plugins/models/contentModelGroup.model.ts index 8d0377cdb7f..7dcea228448 100644 --- a/packages/api-headless-cms/src/handler/plugins/models/contentModelGroup.model.ts +++ b/packages/api-headless-cms/src/handler/plugins/models/contentModelGroup.model.ts @@ -11,7 +11,7 @@ import { export default ({ createBase, context }) => { const CmsGroup: any = compose( - withName("CmsContentModelGroup"), + withName(`CmsContentModelGroup_${context.cms.environment}`), withFields({ name: string({ validation: validation.create("required") }), slug: setOnce()(string({ validation: validation.create("required") })),