mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 01:45:22 +02:00
chore(refactor): remove deadcode from port of Add API for Variables
(#29520)
This commit is contained in:
parent
4c3227eeed
commit
c8293d0e3c
3 changed files with 0 additions and 38 deletions
|
@ -69,10 +69,6 @@ func (opts FindVariablesOpts) ToConds() builder.Cond {
|
|||
return cond
|
||||
}
|
||||
|
||||
func FindVariables(ctx context.Context, opts FindVariablesOpts) ([]*ActionVariable, error) {
|
||||
return db.Find[ActionVariable](ctx, opts)
|
||||
}
|
||||
|
||||
func UpdateVariable(ctx context.Context, variable *ActionVariable) (bool, error) {
|
||||
count, err := db.GetEngine(ctx).ID(variable.ID).Where("owner_id = ? AND repo_id = ?", variable.OwnerID, variable.RepoID).Cols("name", "data").
|
||||
Update(&ActionVariable{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue