Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Update sync.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tobespc authored Dec 12, 2019
1 parent 9369e2e commit 1462e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/project/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type (

// SyncProject syncs a project with its remote connection
func SyncProject(c *cli.Context) (*SyncResponse, *ProjectError) {
var currentSyncTime = time.Now().UnixNano() / 1000000;
projectPath := strings.TrimSpace(c.String("path"))
projectID := strings.TrimSpace(c.String("id"))
synctime := int64(c.Int("time"))
Expand Down Expand Up @@ -96,7 +97,6 @@ func SyncProject(c *cli.Context) (*SyncResponse, *ProjectError) {
// Sync all the necessary project files
fileList, modifiedList, uploadedFilesList := syncFiles(projectPath, projectID, conURL, synctime, conInfo)
// Complete the upload
var currentSyncTime = time.Now().UnixNano() / 1000000;
completeStatus, completeStatusCode := completeUpload(projectID, fileList, modifiedList, conID, currentSyncTime)
response := SyncResponse{
UploadedFiles: uploadedFilesList,
Expand Down

0 comments on commit 1462e0c

Please sign in to comment.