(ctx context.Context, arg database.UpdateChatStatusPreserveUpdatedAtParams)
| 6769 | } |
| 6770 | |
| 6771 | func (q *querier) UpdateChatStatusPreserveUpdatedAt(ctx context.Context, arg database.UpdateChatStatusPreserveUpdatedAtParams) (database.Chat, error) { |
| 6772 | chat, err := q.db.GetChatByID(ctx, arg.ID) |
| 6773 | if err != nil { |
| 6774 | return database.Chat{}, err |
| 6775 | } |
| 6776 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 6777 | return database.Chat{}, err |
| 6778 | } |
| 6779 | return q.db.UpdateChatStatusPreserveUpdatedAt(ctx, arg) |
| 6780 | } |
| 6781 | |
| 6782 | func (q *querier) UpdateChatTitleByID(ctx context.Context, arg database.UpdateChatTitleByIDParams) (database.Chat, error) { |
| 6783 | chat, err := q.db.GetChatByID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected