Skip to content

Commit 4daa878

Browse files
committed
Update fetchAndQuery comment
1 parent 57cde94 commit 4daa878

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/authzquery/authz.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ func fetchAndExec[
211211
}
212212

213213
// fetchAndQuery is a generic function that wraps a database fetch and query.
214+
// A query has potential side effects in the database (update, delete, etc).
214215
// The fetch is used to know which rbac object the action should be asserted on
215216
// **before** the query runs. The returns from the fetch are only used to
216217
// assert rbac. The final return of this function comes from the Query function.

0 commit comments

Comments
 (0)