Skip to content

Copilot/fix failing GitHub actions job again#7

Closed
EPW80 wants to merge 4 commits into
mainfrom
copilot/fix-failing-github-actions-job-again
Closed

Copilot/fix failing GitHub actions job again#7
EPW80 wants to merge 4 commits into
mainfrom
copilot/fix-failing-github-actions-job-again

Conversation

@EPW80

@EPW80 EPW80 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2026 05:51
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
healthmint Ready Ready Preview, Comment Jun 9, 2026 5:51am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the backend API service’s non-production file-upload path to avoid a circular-import initialization problem by lazily loading secureStorageService only when needed.

Changes:

  • Removed the eager secureStorageService import from apiService.js.
  • Added a cached dynamic import (import("./secureStorageService.js")) inside handleFileUpload() to defer module initialization until runtime.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 476 to 480
if (!secureStorageService.initialized) {
await secureStorageService.initialize();
}

// Use the correct method name that exists in secureStorageService
return secureStorageService.uploadToIPFS(file);
Comment on lines +470 to +472
if (!secureStorageServiceModulePromise) {
secureStorageServiceModulePromise = import("./secureStorageService.js");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants