Skip to content

Commit ef91969

Browse files
committed
work on dbauthz
1 parent e205049 commit ef91969

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3589,15 +3589,15 @@ func (q *querier) RevokeDBCryptKey(ctx context.Context, activeKeyDigest string)
35893589
}
35903590

35913591
func (q *querier) SetInboxNotificationAsRead(ctx context.Context, arg database.SetInboxNotificationAsReadParams) error {
3592-
fetch := func(ctx context.Context, id uuid.UUID) (database.NotificationsInbox, error) {
3592+
fetchFunc := func(ctx context.Context, id uuid.UUID) (database.NotificationsInbox, error) {
35933593
return q.db.GetInboxNotificationByID(ctx, id)
35943594
}
35953595

3596-
update := func(ctx context.Context, arg database.SetInboxNotificationAsReadParams) error {
3596+
updateFunc := func(ctx context.Context, arg database.SetInboxNotificationAsReadParams) error {
35973597
return q.db.SetInboxNotificationAsRead(ctx, arg)
35983598
}
35993599

3600-
return update(q.log, q.auth, policy.ActionUpdate, fetch, update)(ctx, arg)
3600+
return update(q.log, q.auth, fetchFunc, updateFunc)(ctx, arg)
36013601
}
36023602

36033603
func (q *querier) TryAcquireLock(ctx context.Context, id int64) (bool, error) {

0 commit comments

Comments
 (0)