Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix not uploading existing projects locally (#10248)
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField authored May 26, 2024
1 parent c28913d commit f2b25bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server-core/src/projects/project/project.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ export class ProjectService<T = ProjectType, ServiceParams extends Params = Proj
const promises: Promise<any>[] = []

for (const projectName of locallyInstalledProjects) {
let seeded = false
if (!data.find((e) => e.name === projectName)) {
seeded = true
try {
promises.push(this._seedProject(projectName))
} catch (e) {
Expand All @@ -210,6 +212,8 @@ export class ProjectService<T = ProjectType, ServiceParams extends Params = Proj
{ enabled, commitSHA, commitDate: toDateTimeSql(commitDate) },
{ query: { name: projectName } }
)

if (!seeded) await uploadLocalProjectToProvider(this.app, projectName)
}

await Promise.all(promises)
Expand Down

0 comments on commit f2b25bd

Please sign in to comment.