"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetProjectConfig = void 0;
class GetProjectConfig {
    projectRepository;
    constructor(projectRepository) {
        this.projectRepository = projectRepository;
    }
    async execute(projectId) {
        const project = await this.projectRepository.getProjectById(projectId);
        if (!project) {
            throw new Error(`Project with id ${projectId} not found`);
        }
        return project.config || { trackedMetadataKeys: [] };
    }
}
exports.GetProjectConfig = GetProjectConfig;
//# sourceMappingURL=getProjectConfig.js.map