feat: remove searchable

This commit is contained in:
fiftin 2024-03-20 23:47:18 +01:00
parent 5d70cc476a
commit 5757aab5b2
4 changed files with 5 additions and 8 deletions

View File

@ -80,7 +80,6 @@ type Integration struct {
AuthSecretID *int `db:"auth_secret_id" json:"auth_secret_id"`
AuthHeader string `db:"auth_header" json:"auth_header"`
AuthSecret AccessKey `db:"-" json:"-"`
Searchable bool `db:"searchable" json:"searchable"`
}
func (env *Integration) Validate() error {

View File

@ -16,15 +16,14 @@ func (d *SqlDb) CreateIntegration(integration db.Integration) (newIntegration db
insertID, err := d.insert(
"id",
"insert into project__integration "+
"(project_id, name, template_id, auth_method, auth_secret_id, auth_header, searchable) values "+
"(project_id, name, template_id, auth_method, auth_secret_id, auth_header) values "+
"(?, ?, ?, ?, ?, ?, ?)",
integration.ProjectID,
integration.Name,
integration.TemplateID,
integration.AuthMethod,
integration.AuthSecretID,
integration.AuthHeader,
integration.Searchable)
integration.AuthHeader)
if err != nil {
return
@ -83,13 +82,12 @@ func (d *SqlDb) UpdateIntegration(integration db.Integration) error {
}
_, err = d.exec(
"update project__integration set `name`=?, template_id=?, auth_method=?, auth_secret_id=?, auth_header=?, searchable=? where `id`=?",
"update project__integration set `name`=?, template_id=?, auth_method=?, auth_secret_id=?, auth_header=? where `id`=?",
integration.Name,
integration.TemplateID,
integration.AuthMethod,
integration.AuthSecretID,
integration.AuthHeader,
integration.Searchable,
integration.ID)
return err

View File

@ -16,7 +16,7 @@
</div>
<v-btn color="primary" @click="addAlias()" :disabled="aliases == null">
{{ aliases == null ? 'Loading aliases...' : 'Add Alias' }}
{{ aliases == null ? 'Loading aliases...' : 'Add Public Alias' }}
</v-btn>
</div>

View File

@ -59,7 +59,7 @@
</div>
<v-btn color="primary" @click="addAlias()" :disabled="aliases == null">
{{ aliases == null ? 'Loading aliases...' : 'Add Alias' }}
{{ aliases == null ? 'Loading aliases...' : 'Add Public Alias' }}
</v-btn>
</div>