fix: update admin token check logic and improve comments for clarity

feat: add condition to only delete manually added stocks from DB
docs: clarify stock notes saving method and Alpaca mode indicator fetching
chore: update binary database file
This commit is contained in:
2026-05-16 22:20:29 +02:00
parent 17ba788419
commit 1eddb9173e
5 changed files with 8 additions and 5 deletions
+1
View File
@@ -354,6 +354,7 @@ export default function Analyze() {
const stock = stocks.find((s) => s.id === id);
if (!stock) return;
// Only delete from DB if it was manually added (db- prefix), not Alpaca positions
if (id.startsWith("db-")) {
try {
const formData = new FormData();