Skip to content

Commit a783293

Browse files
authored
fix(cli): finishedAt type in SyncStatus (#4013)
<!-- Describe the problem and your solution --> `finishedAt` can be undefined before the first run. https://nangohq.slack.com/archives/C069QNE69DX/p1745529633956029 <!-- Issue ticket number and link (if applicable) --> <!-- Testing instructions (skip if just adding/editing providers) --> <!-- Summary by @propel-code-bot --> --- This PR updates the `finishedAt` field type in the SyncStatus interface from `string` to `string | undefined` to properly handle the case where the field is undefined before the first sync run. *This summary was automatically generated by @propel-code-bot*
1 parent b87c5ba commit a783293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node-client/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export interface Integration {
193193
export interface SyncStatus {
194194
id: string;
195195
type: SyncType;
196-
finishedAt: string;
196+
finishedAt: string | undefined;
197197
nextScheduledSyncAt: string;
198198
name: string;
199199
status: 'RUNNING' | 'SUCCESS' | 'ERROR' | 'PAUSED' | 'STOPPED';

0 commit comments

Comments
 (0)