@things-factory/integration-git 9.0.24 → 9.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-git",
3
- "version": "9.0.24",
3
+ "version": "9.0.25",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -27,8 +27,8 @@
27
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
28
28
  },
29
29
  "dependencies": {
30
- "@things-factory/integration-base": "^9.0.24",
30
+ "@things-factory/integration-base": "^9.0.25",
31
31
  "simple-git": "^3.27.0"
32
32
  },
33
- "gitHead": "5b0961255631f7b6bb0c83e66d3d8021e15658bd"
33
+ "gitHead": "f15d38b26438fe7e14edefdeb0b752ce9fe5fa83"
34
34
  }
@@ -8,14 +8,14 @@ export class GitConnector implements Connector {
8
8
  ConnectionManager.logger.info('Git connections are ready')
9
9
  }
10
10
 
11
- checkConnectionInstance(domain, connectionName): boolean {
12
- try {
13
- const connection = ConnectionManager.getConnectionInstanceByName(domain, connectionName)
14
- return !!connection
15
- } catch (e) {
16
- return false
17
- }
18
- }
11
+ // async checkConnectionInstance(domain, connectionName): Promise<boolean> {
12
+ // try {
13
+ // const connection = await ConnectionManager.getConnectionInstanceByName(domain, connectionName)
14
+ // return !!connection
15
+ // } catch (e) {
16
+ // return false
17
+ // }
18
+ // }
19
19
 
20
20
  async connect(connection) {
21
21
  var {
@@ -11,7 +11,7 @@ async function gitClone(step, { domain, data }: Context) {
11
11
  } = step
12
12
 
13
13
  // ✅ Git 연결 정보 가져오기
14
- const gitInstance = ConnectionManager.getConnectionInstanceByName(domain, connection)
14
+ const gitInstance = await ConnectionManager.getConnectionInstanceByName(domain, connection)
15
15
  if (!gitInstance) {
16
16
  debug(`No connection: ${connection}`)
17
17
  throw new Error(`No connection: ${connection}`)
@@ -12,7 +12,7 @@ async function gitPull(step, { domain, data }: Context) {
12
12
  } = step
13
13
 
14
14
  // ✅ Git 연결 정보 가져오기
15
- const gitInstance = ConnectionManager.getConnectionInstanceByName(domain, connection)
15
+ const gitInstance = await ConnectionManager.getConnectionInstanceByName(domain, connection)
16
16
  if (!gitInstance) {
17
17
  debug(`No connection found: ${connection}`)
18
18
  throw new Error(`No connection: ${connection}`)