fix import dupe detection

pull/3/head
Adam Veldhousen 2023-05-13 20:53:08 -05:00
parent 733fb07b11
commit 1bb19f666a
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B
1 changed files with 2 additions and 1 deletions

View File

@ -57,12 +57,13 @@ func (d *Usecase) ImportAuction(ctx context.Context, in ImportAuctionMessage) (e
return
}
err = nil
event = AuctionCreated{
Auction: in.Auction,
Duplicate: errors.Is(err, ErrDuplicateAuctionImported),
}
err = nil
status := "✅"
if event.Duplicate {
status = "🚫"