Agent par défaut
This commit is contained in:
1 parent
cf10b9073b
commit
f74e4d1043
24 files changed
+385
-37
No files matched your search
@@ -63,7 +63,7 @@ create table user_addresses (
|
||||
create table teams (
|
||||
id text not null primary key,
|
||||
label text not null,
|
||||
default_model_id text,
|
||||
default_agent_id text,
|
||||
_date_created numeric not null default current_timestamp,
|
||||
_date_updated numeric ,
|
||||
_version text not null
|
||||
|
||||
@@ -68,7 +68,7 @@ func (ur *TursoUserRepository) DeleteUser(id string) error {
|
||||
}
|
||||
|
||||
func (ur *TursoUserRepository) FindTeam(userid string, teamid string) (*domain.Team, error) {
|
||||
return ur.TeamTable.SelectOne("id=$1 and user_id=$2", teamid, userid)
|
||||
return ur.TeamTable.SelectOne("id=$1 and id in (select team_id from user_teams where user_id=$2)", teamid, userid)
|
||||
}
|
||||
|
||||
func (ur *TursoUserRepository) ListTeams(userid string) ([]*domain.Team, error) {
|
||||
|
||||
Reference in new issue
Block a user