Skip to content

Commit

Permalink
Remove BranchHash from File struct
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 2, 2022
1 parent c58b4b3 commit 5d50e72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions dbs/bulkblocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ type File struct {
FileSize int64 `json:"file_size"`
EventCount int64 `json:"event_count"`
FileType string `json:"file_type"`
BranchHash string `json:"branch_hash"`
LastModifiedBy string `json:"last_modified_by"`
LastModificationDate int64 `json:"last_modification_date"`
LogicalFileName string `json:"logical_file_name"`
Expand Down Expand Up @@ -566,9 +565,9 @@ func (a *API) InsertBulkBlocks() error {
return Error(err, GetIDErrorCode, "", "dbs.bulkblocks.InsertBulkBlocks")
}
// get branch hash ID and insert record if it does not exists
if rrr.BranchHash == "" {
rrr.BranchHash = "branch-hash"
}
// if rrr.BranchHash == "" {
// rrr.BranchHash = "branch-hash"
// }

cBy := rrr.LastModifiedBy
if cBy == "" {
Expand Down
6 changes: 3 additions & 3 deletions dbs/bulkblocks2.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,9 @@ func insertFilesChunk(
return
}
// get branch hash ID and insert record if it does not exists
if rrr.BranchHash == "" {
rrr.BranchHash = "branch-hash"
}
// if rrr.BranchHash == "" {
// rrr.BranchHash = "branch-hash"
// }

cBy := rrr.LastModifiedBy
if cBy == "" {
Expand Down

0 comments on commit 5d50e72

Please sign in to comment.