From f131efe2b0c1dc1aae7f1d7dbcdc8898b2fc07cf Mon Sep 17 00:00:00 2001 From: andreaanez Date: Wed, 22 Oct 2025 10:56:13 -0700 Subject: [PATCH] now is translated to None value as time for reserved nodes in Nodes API --- src/lib/nodes/create.ts | 2 -- src/schema.ts | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/lib/nodes/create.ts b/src/lib/nodes/create.ts index 3b9b45f..6603233 100644 --- a/src/lib/nodes/create.ts +++ b/src/lib/nodes/create.ts @@ -255,8 +255,6 @@ async function createNodesAction( const startDate = options.start; if (typeof startDate !== "string") { createParams.start_at = Math.floor(startDate.getTime() / 1000); - } else { - createParams.start_at = Math.floor(new Date().getTime() / 1000); } // Check if the start date is "NOW" or on an hour boundary diff --git a/src/schema.ts b/src/schema.ts index c829b8e..1104795 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1892,11 +1892,11 @@ export interface components { /** @default autoreserved */ node_type: null | components["schemas"]["node-api_NodeType"]; /** - * Format: int64 - * @description Start time as Unix timestamp in seconds - * @example 1640995200 - */ - start_at?: number; + * Format: int64 + * @description Start time as Unix timestamp in seconds + * @example 1640995200 + */ + start_at?: number | null; /** * @description Zone to create the nodes in * @example hayesvalley