Skip to content

Commit

Permalink
[nan-2413] fix date/string
Browse files Browse the repository at this point in the history
  • Loading branch information
khaliqgant committed Dec 19, 2024
1 parent 587c841 commit 0fd8551
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integrations/linear/syncs/roadmaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export default async function fetchData(nango: NangoSync) {
}`;

const response = await nango.post({
baseUrlOverride: 'https://api.linear.app',
endpoint: '/graphql',
data: {
query: query
Expand All @@ -70,8 +69,8 @@ function mapRoadmaps(records: any[]): LinearRoadmap[] {
id: record.id,
name: record.name,
description: record.description,
createdAt: new Date(record.createdAt),
updatedAt: new Date(record.updatedAt),
createdAt: new Date(record.createdAt).toISOString(),
updatedAt: new Date(record.updatedAt).toISOString(),
teamId: record.organization.teams.nodes[0]['id'] || '',
projectIds: record.projects.nodes.map((project: any) => project.id).join(',')
};
Expand Down

0 comments on commit 0fd8551

Please sign in to comment.