mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-20 16:47:50 +02:00
TSK-651: Fix Team editing (#2611)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -2,23 +2,16 @@ import faker from 'faker'
|
||||
|
||||
import contact from '@hcengineering/contact'
|
||||
import core, {
|
||||
TxOperations,
|
||||
MeasureMetricsContext,
|
||||
metricsToString,
|
||||
AttachedData,
|
||||
generateId,
|
||||
MeasureMetricsContext,
|
||||
metricsToString,
|
||||
Ref,
|
||||
SortingOrder,
|
||||
TxOperations,
|
||||
WorkspaceId
|
||||
} from '@hcengineering/core'
|
||||
import tracker, {
|
||||
calcRank,
|
||||
Issue,
|
||||
IssuePriority,
|
||||
IssueStatus,
|
||||
TimeReportDayType,
|
||||
WorkDayLength
|
||||
} from '../../../plugins/tracker/lib'
|
||||
import tracker, { calcRank, Issue, IssuePriority, IssueStatus } from '../../../plugins/tracker/lib'
|
||||
|
||||
import { connect } from './connect'
|
||||
|
||||
@@ -42,9 +35,7 @@ const object: AttachedData<Issue> = {
|
||||
reportedTime: 0,
|
||||
estimation: 0,
|
||||
reports: 0,
|
||||
childInfo: [],
|
||||
workDayLength: WorkDayLength.EIGHT_HOURS,
|
||||
defaultTimeReportDay: TimeReportDayType.PreviousWorkDay
|
||||
childInfo: []
|
||||
}
|
||||
|
||||
export interface IssueOptions {
|
||||
@@ -106,9 +97,7 @@ async function genIssue (client: TxOperations): Promise<void> {
|
||||
estimation: object.estimation,
|
||||
reports: 0,
|
||||
relations: [],
|
||||
childInfo: [],
|
||||
workDayLength: object.workDayLength,
|
||||
defaultTimeReportDay: object.defaultTimeReportDay
|
||||
childInfo: []
|
||||
}
|
||||
await client.addCollection(
|
||||
tracker.class.Issue,
|
||||
|
||||
Reference in New Issue
Block a user