mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 12:17:44 +02:00
UBER-174: Introduce createOn every there (#3222)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -35,8 +35,7 @@ const object: AttachedData<Issue> = {
|
||||
reportedTime: 0,
|
||||
estimation: 0,
|
||||
reports: 0,
|
||||
childInfo: [],
|
||||
createOn: Date.now()
|
||||
childInfo: []
|
||||
}
|
||||
|
||||
export interface IssueOptions {
|
||||
@@ -98,8 +97,7 @@ async function genIssue (client: TxOperations, statuses: Ref<IssueStatus>[]): Pr
|
||||
estimation: object.estimation,
|
||||
reports: 0,
|
||||
relations: [],
|
||||
childInfo: [],
|
||||
createOn: Date.now()
|
||||
childInfo: []
|
||||
}
|
||||
await client.addCollection(
|
||||
tracker.class.Issue,
|
||||
|
||||
@@ -2,23 +2,23 @@ import contact, { Channel, Employee, EmployeeAccount, Person } from '@hcengineer
|
||||
import core, {
|
||||
AttachedData,
|
||||
Data,
|
||||
generateId,
|
||||
MeasureContext,
|
||||
MeasureMetricsContext,
|
||||
metricsToString,
|
||||
MixinUpdate,
|
||||
Ref,
|
||||
TxOperations,
|
||||
WorkspaceId
|
||||
WorkspaceId,
|
||||
generateId,
|
||||
metricsToString
|
||||
} from '@hcengineering/core'
|
||||
import { MinioService } from '@hcengineering/minio'
|
||||
import recruit from '@hcengineering/model-recruit'
|
||||
import { Applicant, Candidate, Vacancy } from '@hcengineering/recruit'
|
||||
import { genRanks, State } from '@hcengineering/task'
|
||||
import { State, genRanks } from '@hcengineering/task'
|
||||
import faker from 'faker'
|
||||
import jpeg, { BufferRet } from 'jpeg-js'
|
||||
import { addAttachments, AttachmentOptions } from './attachments'
|
||||
import { addComments, CommentOptions } from './comments'
|
||||
import { AttachmentOptions, addAttachments } from './attachments'
|
||||
import { CommentOptions, addComments } from './comments'
|
||||
import { connect } from './connect'
|
||||
import { createUpdateSpaceKanban } from './kanban'
|
||||
import { findOrUpdate, findOrUpdateAttached } from './utils'
|
||||
@@ -162,8 +162,7 @@ async function genApplicant (
|
||||
doneState: null,
|
||||
rank: rank as string,
|
||||
startDate: null,
|
||||
dueDate: null,
|
||||
createOn: Date.now()
|
||||
dueDate: null
|
||||
}
|
||||
|
||||
// Update or create candidate
|
||||
@@ -234,8 +233,7 @@ async function genCandidate (
|
||||
const candidate: Data<Person> = {
|
||||
name: fName + ',' + lName,
|
||||
city: faker.address.city(),
|
||||
avatar: imgId,
|
||||
createOn: Date.now()
|
||||
avatar: imgId
|
||||
}
|
||||
|
||||
const candidateMixin: MixinUpdate<Person, Candidate> = {
|
||||
|
||||
Reference in New Issue
Block a user