This commit is contained in:
Elio Bischof
2023-06-30 12:56:30 +02:00
parent 1a530953a7
commit 477cb4ad79
3 changed files with 58 additions and 28 deletions

View File

@@ -4,7 +4,6 @@ import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"github.com/zitadel/logging"
@@ -67,6 +66,6 @@ type Condition func(param string) (string, interface{})
func NewCond(name string, value interface{}) Condition {
return func(param string) (string, interface{}) {
return fmt.Sprintf("%s = %s", name, param), value
return name + " = " + param, value
}
}