Skip to content

Commit

Permalink
fix: fixed IBucket.first_seen for aw-server-python
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 22, 2023
1 parent f38648c commit 8babe10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ export const useBucketsStore = defineStore('buckets', {
if (!b.first_seen && b.metadata && b.metadata.start) {
b.first_seen = b.metadata.start;
}
if (!b.first_seen && b.created) {
b.first_seen = b.created;
}

return b;
});
},
Expand Down
1 change: 1 addition & 0 deletions src/util/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export interface IBucket {
metadata?: { start: Date; end: Date };
last_updated?: Date;
first_seen?: Date;
created?: Date;
}

1 comment on commit 8babe10

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.