(ctx context.Context, arg database.UpdateChatWorkspaceBindingParams)
| 6791 | } |
| 6792 | |
| 6793 | func (q *querier) UpdateChatWorkspaceBinding(ctx context.Context, arg database.UpdateChatWorkspaceBindingParams) (database.Chat, error) { |
| 6794 | chat, err := q.db.GetChatByID(ctx, arg.ID) |
| 6795 | if err != nil { |
| 6796 | return database.Chat{}, err |
| 6797 | } |
| 6798 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 6799 | return database.Chat{}, err |
| 6800 | } |
| 6801 | |
| 6802 | return q.db.UpdateChatWorkspaceBinding(ctx, arg) |
| 6803 | } |
| 6804 | |
| 6805 | func (q *querier) UpdateCryptoKeyDeletesAt(ctx context.Context, arg database.UpdateCryptoKeyDeletesAtParams) (database.CryptoKey, error) { |
| 6806 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceCryptoKey); err != nil { |
nothing calls this directly
no test coverage detected