Skip to content

Commit

Permalink
fix(project): update project's default sync policy (#8044)
Browse files Browse the repository at this point in the history
* fix(project): update project's default sync policy

* fix(project): update project's default sync policy
  • Loading branch information
d4x1 authored Sep 13, 2024
1 parent 6b21f49 commit 92d3d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/server/services/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package services

import (
"fmt"
"github.com/apache/incubator-devlake/helpers/pluginhelper/services"
"golang.org/x/sync/errgroup"
"strings"
"time"
Expand Down Expand Up @@ -142,7 +143,7 @@ func CreateProject(projectInput *models.ApiInputProject) (*models.ApiOutputProje
ProjectName: project.Name,
Mode: "NORMAL",
Enable: true,
CronConfig: "0 0 * * *",
CronConfig: services.BP_CRON_WEEKLY,
IsManual: false,
SyncPolicy: models.SyncPolicy{
TimeAfter: func() *time.Time {
Expand Down

0 comments on commit 92d3d0f

Please sign in to comment.