Skip to content

Commit d1c4692

Browse files
committed
fix(repository): trigger new build and fetch latest build
1 parent c0eb213 commit d1c4692

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/process-manager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ export function stopJob(jobId: number): Promise<void> {
347347

348348
export function startBuild(data: any): Promise<any> {
349349
let config: JobsAndEnv[];
350+
let repoId = data.repositories_id;
350351
let pr = null;
351352
let sha = null;
352353
let branch = null;
@@ -424,7 +425,7 @@ export function startBuild(data: any): Promise<any> {
424425
jobEvents.next({
425426
type: 'process',
426427
build_id: data.build_id,
427-
repository_id: data.repositories_id,
428+
repository_id: repoId,
428429
data: 'build added'
429430
});
430431
})

0 commit comments

Comments
 (0)