Skip to content

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 and root committed May 29, 2024
1 parent 745c513 commit 07c9cf3
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 07c9cf3

Please sign in to comment.