Remove the unused GetSessionChannelIDs from the db package (closes #254)
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
Neither the server nor any test calls this method. Model: opus-5-5
This commit was merged in pull request #258.
This commit is contained in:
@@ -1056,23 +1056,6 @@ func (database *Database) GetChannelMemberIDs(
|
|||||||
return scanInt64s(rows)
|
return scanInt64s(rows)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetSessionChannelIDs returns channel IDs for a session.
|
|
||||||
func (database *Database) GetSessionChannelIDs(
|
|
||||||
ctx context.Context,
|
|
||||||
sessionID int64,
|
|
||||||
) ([]int64, error) {
|
|
||||||
rows, err := database.conn.QueryContext(ctx,
|
|
||||||
`SELECT channel_id FROM channel_members
|
|
||||||
WHERE session_id = ?`, sessionID)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf(
|
|
||||||
"get session channel ids: %w", err,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return scanInt64s(rows)
|
|
||||||
}
|
|
||||||
|
|
||||||
// InsertMessage stores a message and returns its DB ID.
|
// InsertMessage stores a message and returns its DB ID.
|
||||||
// toSessionID is the session a DM or INVITE is sent to and
|
// toSessionID is the session a DM or INVITE is sent to and
|
||||||
// toChannelID the channel a channel message is sent to;
|
// toChannelID the channel a channel message is sent to;
|
||||||
|
|||||||
Reference in New Issue
Block a user