Skip to content

Commit

Permalink
integrations: Use int64 for file size
Browse files Browse the repository at this point in the history
  • Loading branch information
nemunaire committed Nov 17, 2024
1 parent a5bd8c2 commit f190b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/integrations/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func visitDir(root, currentPath string, depth int, parentFolder *messages.Integr
ID: encodedPath,
FileID: encodedPath,
Name: docName,
Size: int(d.Size()),
Size: d.Size(),
SourceFileType: contentType,
}

Expand Down
2 changes: 1 addition & 1 deletion internal/messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ type IntegrationFile struct {
ID string `json:"id"`
Name string `json:"name"`
ProvidedFileType string `json:"providedFileType"`
Size int `json:"size"`
Size int64 `json:"size"`
SourceFileType string `json:"sourceFileType"`
}

Expand Down

0 comments on commit f190b66

Please sign in to comment.