Skip to content

Commit

Permalink
fix(project): update project's default sync policy
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 committed Sep 13, 2024
1 parent ae3d1d8 commit 7842ac5
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 * * 1",
CronConfig: services.BP_CRON_WEEKLY,
IsManual: false,
SyncPolicy: models.SyncPolicy{
TimeAfter: func() *time.Time {
Expand Down

0 comments on commit 7842ac5

Please sign in to comment.