(ctx context.Context, arg database.UpdateChatLastModelConfigByIDParams)
| 6667 | } |
| 6668 | |
| 6669 | func (q *querier) UpdateChatLastModelConfigByID(ctx context.Context, arg database.UpdateChatLastModelConfigByIDParams) (database.Chat, error) { |
| 6670 | chat, err := q.db.GetChatByID(ctx, arg.ID) |
| 6671 | if err != nil { |
| 6672 | return database.Chat{}, err |
| 6673 | } |
| 6674 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 6675 | return database.Chat{}, err |
| 6676 | } |
| 6677 | return q.db.UpdateChatLastModelConfigByID(ctx, arg) |
| 6678 | } |
| 6679 | |
| 6680 | func (q *querier) UpdateChatLastReadMessageID(ctx context.Context, arg database.UpdateChatLastReadMessageIDParams) error { |
| 6681 | chat, err := q.db.GetChatByID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected