Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu committed Sep 10, 2023
1 parent fd59101 commit d6f28e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions front/lib/models/assistant/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ AgentConfiguration.init(
}
);

// Agent config <> Workspace
Workspace.hasMany(AgentConfiguration, {
foreignKey: { name: "workspaceId", allowNull: true }, // null = global Agent
onDelete: "CASCADE",
});

/**
* Configuration of Agent generation.
*/
Expand Down Expand Up @@ -156,12 +162,6 @@ AgentGenerationConfiguration.init(
}
);

// Agent config <> Workspace
Workspace.hasMany(AgentConfiguration, {
foreignKey: { name: "workspaceId", allowNull: true }, // null = global Agent
onDelete: "CASCADE",
});

// Agent config <> Generation config
AgentGenerationConfiguration.hasOne(AgentConfiguration, {
foreignKey: { name: "generationConfigurationId", allowNull: true }, // null = no generation set for this Agent
Expand Down

0 comments on commit d6f28e5

Please sign in to comment.