chore: fix function names (#20159)

Signed-off-by: majorteach <csgcgl@126.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
James Kang 2024-03-26 13:53:44 +08:00 committed by GitHub
parent 80a9c688fc
commit fd81e7c43e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ func (m *manager) Create(ctx context.Context, jobLog *models.JobLog) (id int64,
return m.dao.Create(ctx, jobLog) return m.dao.Create(ctx, jobLog)
} }
// DeleteJobLogsBefore ... // DeleteBefore ...
func (m *manager) DeleteBefore(ctx context.Context, t time.Time) (id int64, err error) { func (m *manager) DeleteBefore(ctx context.Context, t time.Time) (id int64, err error) {
return m.dao.DeleteBefore(ctx, t) return m.dao.DeleteBefore(ctx, t)
} }

View File

@ -57,7 +57,7 @@ func (n *WebhookPolicy) ToTargets() []*models.WebhookTargetObject {
return results return results
} }
// NewNotifiactionPolicy ... // NewWebhookPolicy ...
func NewWebhookPolicy(p *model.Policy) *WebhookPolicy { func NewWebhookPolicy(p *model.Policy) *WebhookPolicy {
return &WebhookPolicy{ return &WebhookPolicy{
Policy: p, Policy: p,