1
0
Fork 0
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:
Earl Warren 2025-01-25 16:36:35 +01:00
parent 4c3227eeed
commit c8293d0e3c
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 0 additions and 38 deletions

View file

@ -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{