"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStrategyPresets = void 0;
const database_1 = require("../../database");
const tables_1 = require("../../database/tables");
const getStrategyPresets = async (req, res) => {
    try {
        const db = await (0, database_1.getDb)();
        const presets = await db.select().from(tables_1.strategyPresetsTable);
        res.json({ data: presets });
    }
    catch (error) {
        res.status(500).json({ error: 'Failed to fetch strategy presets', details: String(error) });
    }
};
exports.getStrategyPresets = getStrategyPresets;
//# sourceMappingURL=strategies.js.map