mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 13:11:49 +00:00
continue on invalid tag
Co-authored-by: James Cotter <35706755+jac@users.noreply.github.com>
This commit is contained in:
parent
ccd4518b5c
commit
5916b1f248
@ -168,7 +168,7 @@ func (i *importer) importSubscription(ctx context.Context, dotcomSub *dotcomdb.S
|
||||
for _, t := range activeLicense.Tags {
|
||||
parts := strings.SplitN(t, ":", 2)
|
||||
if len(parts) != 2 {
|
||||
return nil
|
||||
continue
|
||||
}
|
||||
if parts[0] == "customer" {
|
||||
// Collision rates are high, and it's tricky to check -
|
||||
@ -210,7 +210,7 @@ func (i *importer) importSubscription(ctx context.Context, dotcomSub *dotcomdb.S
|
||||
return errors.Wrap(err, "dotcom: get cody gateway access")
|
||||
}
|
||||
if _, err := i.codyGatewayAccess.Upsert(ctx, dotcomSub.ID, codyaccess.UpsertCodyGatewayAccessOptions{
|
||||
Enabled: dotcomCGAccess.CodyGatewayEnabled,
|
||||
Enabled: pointers.Ptr(dotcomCGAccess.CodyGatewayEnabled),
|
||||
|
||||
ChatCompletionsRateLimit: dotcomCGAccess.ChatCompletionsRateLimit,
|
||||
ChatCompletionsRateLimitIntervalSeconds: dotcomCGAccess.ChatCompletionsRateSeconds,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user