MCPcopy Create free account
hub / github.com/rilldata/rill / UpdateOrganizationInviteRole

Method UpdateOrganizationInviteRole

admin/database/postgres/postgres.go:2689–2692  ·  view source on GitHub ↗
(ctx context.Context, id, roleID string)

Source from the content-addressed store, hash-verified

2687}
2688
2689func (c *connection) UpdateOrganizationInviteRole(ctx context.Context, id, roleID string) error {
2690 res, err := c.getDB(ctx).ExecContext(ctx, `UPDATE org_invites SET org_role_id = $1 WHERE id = $2`, roleID, id)
2691 return checkUpdateRow("org invite", res, err)
2692}
2693
2694func (c *connection) FindProjectInvites(ctx context.Context, projectID, afterEmail string, limit int) ([]*database.ProjectInviteWithRole, error) {
2695 var dtos []*projectInviteWithRoleDTO

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkUpdateRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected