Skip to content

Commit

Permalink
restoring order of events
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Nov 30, 2023
1 parent d85c83a commit 50e27b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VahterBanBot/Bot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ let onUpdate
else

// upserting user to DB
let upsertUserTask =
let! _ =
DbUser.newUser message.From
|> DB.upsertUser
|> taskIgnore

// check if message comes from channel, we should delete it immediately
if botConfig.ShouldDeleteChannelMessages && isChannelMessage message then
Expand Down Expand Up @@ -276,5 +277,4 @@ let onUpdate
|> DbMessage.newMessage
|> DB.insertMessage
|> taskIgnore
do! taskIgnore upsertUserTask
}

0 comments on commit 50e27b5

Please sign in to comment.