From d4eeeb38aec5ff4102739cd0daa9db579d74e611 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Tue, 11 Apr 2023 22:32:27 +0600 Subject: [PATCH] Fix typo (#2946) Signed-off-by: Denis Bykhov --- models/templates/src/index.ts | 8 ++++---- models/templates/src/migration.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/models/templates/src/index.ts b/models/templates/src/index.ts index f299ce5636..6f6fa08d76 100644 --- a/models/templates/src/index.ts +++ b/models/templates/src/index.ts @@ -16,17 +16,17 @@ import { Domain, DOMAIN_MODEL, IndexKind, Ref } from '@hcengineering/core' import { Builder, Index, Model, Prop, TypeString, UX } from '@hcengineering/model' -import core, { DOMAIN_SPACE, TDoc, TSpace } from '@hcengineering/model-core' +import core, { TDoc, TSpace } from '@hcengineering/model-core' import textEditor from '@hcengineering/model-text-editor' import view, { createAction } from '@hcengineering/model-view' import { IntlString, Resource } from '@hcengineering/platform' import setting from '@hcengineering/setting' import type { MessageTemplate, + TemplateCategory, TemplateField, TemplateFieldCategory, - TemplateFieldFunc, - TemplateCategory + TemplateFieldFunc } from '@hcengineering/templates' import templates from './plugin' @@ -43,7 +43,7 @@ export class TMessageTemplate extends TDoc implements MessageTemplate { message!: string } -@Model(templates.class.TemplateCategory, core.class.Space, DOMAIN_SPACE) +@Model(templates.class.TemplateCategory, core.class.Space) @UX(templates.string.TemplateCategory) export class TTemplateCategory extends TSpace implements TemplateCategory {} diff --git a/models/templates/src/migration.ts b/models/templates/src/migration.ts index 96e50efc52..5c134c7488 100644 --- a/models/templates/src/migration.ts +++ b/models/templates/src/migration.ts @@ -70,9 +70,9 @@ async function changeClass (client: MigrationClient): Promise { }, { objectClass: templates.class.TemplateCategory, - 'attirbutes.private': false, - 'attirbutes.name': 'Public templates', - 'attirbutes.description': 'Space for public templates' + 'attributes.private': false, + 'attributes.name': 'Public templates', + 'attributes.description': 'Space for public templates' } ) }