Skip to content

Commit

Permalink
Add algorithm - part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
petyos committed Jan 29, 2024
1 parent 3aba240 commit 02198b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/logic_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ func (e eventsLogic) processWebToolsEvents() {
err = e.app.storage.PerformTransaction(func(context storage.TransactionContext) error {
//1. first find which events are already in the database. You have to compare by dataSourceEventId field.

//1.1 before to execute point 2(i.e. remove all of them) you must keep their IDs so that to put them again on point 3

//2. Once you know which are already in the datatabse then you must remove all of them

//3. Now you have to convert all allWebToolsEvents into legacy events
Expand Down

0 comments on commit 02198b6

Please sign in to comment.