fix import dupe detection
parent
733fb07b11
commit
1bb19f666a
|
|
@ -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 = "🚫"
|
||||
|
|
|
|||
Loading…
Reference in New Issue