MCPcopy Index your code
hub / github.com/coder/coder / GetChatQueuedMessages

Method GetChatQueuedMessages

coderd/database/dbauthz/dbauthz.go:3172–3178  ·  view source on GitHub ↗
(ctx context.Context, chatID uuid.UUID)

Source from the content-addressed store, hash-verified

3170}
3171
3172func (q *querier) GetChatQueuedMessages(ctx context.Context, chatID uuid.UUID) ([]database.ChatQueuedMessage, error) {
3173 _, err := q.GetChatByID(ctx, chatID)
3174 if err != nil {
3175 return nil, err
3176 }
3177 return q.db.GetChatQueuedMessages(ctx, chatID)
3178}
3179
3180func (q *querier) GetChatRetentionDays(ctx context.Context) (int32, error) {
3181 // Chat retention is a deployment-wide config read by dbpurge.

Callers

nothing calls this directly

Calls 2

GetChatByIDMethod · 0.95
GetChatQueuedMessagesMethod · 0.65

Tested by

no test coverage detected