Skip to content

Commit d96a34a

Browse files
committed
refactored
1 parent 6405f3c commit d96a34a

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -898,13 +898,6 @@ func (q *querier) customRoleCheck(ctx context.Context, role database.CustomRole)
898898
return nil
899899
}
900900

901-
func (q *querier) DeleteOldNotificationReportGeneratorLogs(ctx context.Context, arg database.DeleteOldNotificationReportGeneratorLogsParams) error {
902-
if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
903-
return err
904-
}
905-
return q.db.DeleteOldNotificationReportGeneratorLogs(ctx, arg)
906-
}
907-
908901
func (q *querier) AcquireLock(ctx context.Context, id int64) error {
909902
return q.db.AcquireLock(ctx, id)
910903
}

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,12 +2735,6 @@ func (s *MethodTestSuite) TestSystemFunctions() {
27352735
Value: "value",
27362736
}).Asserts(rbac.ResourceSystem, policy.ActionCreate)
27372737
}))
2738-
s.Run("DeleteOldNotificationReportGeneratorLogs", s.Subtest(func(db database.Store, check *expects) {
2739-
check.Args(database.DeleteOldNotificationReportGeneratorLogsParams{
2740-
Before: dbtime.Now(),
2741-
NotificationTemplateID: uuid.New(),
2742-
}).Asserts(rbac.ResourceSystem, policy.ActionDelete)
2743-
}))
27442738
s.Run("GetFailedWorkspaceBuildsByTemplateID", s.Subtest(func(db database.Store, check *expects) {
27452739
check.Args(database.GetFailedWorkspaceBuildsByTemplateIDParams{
27462740
TemplateID: uuid.New(),

coderd/database/dbmetrics/dbmetrics.go

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)