GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(core): delegate credential activation (#45692) · anomalyco/opencode@62d9aa9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/core/src
    • integration.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/core/src/integration.ts‎

Copy file name to clipboardExpand all lines: packages/core/src/integration.ts
+1-10Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -719,16 +719,7 @@ const layer = Layer.effect(
719719
}),
720720
})
721721
}),
722-
activate: Effect.fn("Integration.connection.activate")(function* (credentialID) {
723-
const credential = yield* credentials.get(credentialID)
724-
if (!credential) return
725-
const active = resolveConnections(
726-
state.get().integrations.get(credential.integrationID),
727-
yield* credentials.list(credential.integrationID),
728-
)[0]
729-
if (active?.type === "credential" && active.id === credentialID) return
730-
yield* credentials.activate(credentialID)
731-
}),
722+
activate: Effect.fn("Integration.connection.activate")((credentialID) => credentials.activate(credentialID)),
732723
update: Effect.fn("Integration.connection.update")((credentialID, updates) =>
733724
credentials.update(credentialID, updates),
734725
),

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.