Skip to content

Commit

Permalink
chore: fix function names
Browse files Browse the repository at this point in the history
Signed-off-by: majorteach <[email protected]>
  • Loading branch information
majorteach committed Mar 23, 2024
1 parent 69fc957 commit dd38162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pkg/joblog/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (m *manager) Create(ctx context.Context, jobLog *models.JobLog) (id int64,
return m.dao.Create(ctx, jobLog)
}

// DeleteJobLogsBefore ...
// DeleteBefore ...
func (m *manager) DeleteBefore(ctx context.Context, t time.Time) (id int64, err error) {
return m.dao.DeleteBefore(ctx, t)
}
2 changes: 1 addition & 1 deletion src/server/v2.0/handler/model/webhook_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (n *WebhookPolicy) ToTargets() []*models.WebhookTargetObject {
return results
}

// NewNotifiactionPolicy ...
// NewWebhookPolicy ...
func NewWebhookPolicy(p *model.Policy) *WebhookPolicy {
return &WebhookPolicy{
Policy: p,
Expand Down

0 comments on commit dd38162

Please sign in to comment.