Skip to content

Commit

Permalink
disable multiple data sources for ts version
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj committed Mar 25, 2024
1 parent 8b8f479 commit 3df53d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ export const askQuestions = async (
program.dataSources = getPrefOrDefault("dataSources");
} else {
program.dataSources = [];
for (let i = 0; i < 2; i++) {
const numberDataSources = program.framework === "fastapi" ? 2 : 1;
for (let i = 0; i < numberDataSources; i++) {
const { selectedSource } = await prompts(
{
type: "select",
Expand Down

0 comments on commit 3df53d6

Please sign in to comment.