Skip to content

Commit 9dd059c

Browse files
order id plan name
1 parent 3051941 commit 9dd059c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/apps/cb/commands/plan-handlers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export function savePlanFile(plan: TradePlanBuildSuccess, postOnly: boolean, ord
8181
const configDir = process.env["XDG_CONFIG_HOME"] ?? path.join(os.homedir(), ".config");
8282
const plansDir = path.join(configDir, "helper", "plans");
8383
mkdirSync(plansDir, { recursive: true });
84-
const timestamp = new Date().toISOString().replace(/[:.]/g, "-");
85-
const filename = `${plan.product.toLowerCase()}-${timestamp}.json`;
84+
const filename = `${orderId}.json`;
8685
const filePath = path.join(plansDir, filename);
8786
writeFileSync(filePath, serializeJson({ ...plan, orderId, orderOptions: { ...plan.orderOptions, postOnly } } as Record<string, unknown>));
8887
return filePath;

0 commit comments

Comments
 (0)