Skip to content

Commit

Permalink
add pe meta to summary/
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubfaouzi committed Feb 3, 2024
1 parent ec87eda commit bb18e24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0
0.6.0
1 change: 1 addition & 0 deletions db/file-summary.n1ql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SELECT
"value": ARRAY_COUNT(ARRAY_FLATTEN(ARRAY i.infected FOR i IN OBJECT_VALUES(f.multiav.last_scan) WHEN i.infected = TRUE END,1)),
"count": OBJECT_LENGTH(f.multiav.last_scan)
},
"pe_meta": f.pe.meta,
"default_behavior_id": f.default_behavior_id,
"liked": CASE WHEN ARRAY_LENGTH(user_likes) = 0 THEN false
ELSE ARRAY_BINARY_SEARCH(ARRAY_SORT((user_likes)[0]), f.sha256) >= 0 END
Expand Down
1 change: 1 addition & 0 deletions internal/file/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func (s service) Create(ctx context.Context, req CreateFileRequest) (
// Ensure the context is canceled to prevent leaking.
defer cancelFn()

// TODO: check if the file is already in Obj.
err = s.objSto.Upload(uploadCtx, s.bucket, sha256,
bytes.NewReader(fileContent))
if err != nil {
Expand Down

0 comments on commit bb18e24

Please sign in to comment.