mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* chore: views publish endpoints * fix: members and cycles endpoint * chore: added issue count and attachment count * chore: resolved build errors * chore: added created at and updated at in issue response * chore: comments, votes and reaction endpoints * chore: removed the comment, votes and reaction endpoint * feat Publish views * chore: added import statement * revert back unnecessary non ee changes * fix gantt layout * fix view issues * fix lints and remove unncessary code * revert back yarn.lock --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
import { IIssue } from "@/types/issue";
|
|
import { IGanttBlock } from "../types";
|
|
import { getDate } from "./date-time.helper";
|
|
|
|
export const getIssueBlocksStructure = (block: IIssue): IGanttBlock => ({
|
|
data: block,
|
|
id: block?.id,
|
|
sort_order: block?.sort_order,
|
|
start_date: getDate(block?.start_date),
|
|
target_date: getDate(block?.target_date),
|
|
});
|