Skip to content

(VDB-977) Remove flip kick repository#41

Merged
gslaughl merged 1 commit intostagingfrom
vdb-977-remove-flip-kick-repo
Dec 9, 2019
Merged

(VDB-977) Remove flip kick repository#41
gslaughl merged 1 commit intostagingfrom
vdb-977-remove-flip-kick-repo

Conversation

@gslaughl
Copy link
Copy Markdown
Contributor

@gslaughl gslaughl commented Dec 6, 2019

No description provided.

@gslaughl gslaughl force-pushed the vdb-977-remove-flip-kick-repo branch 2 times, most recently from 9aed809 to 039016f Compare December 6, 2019 06:53
Copy link
Copy Markdown
Contributor

@elizabethengelman elizabethengelman left a comment

Choose a reason for hiding this comment

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

🐎

flapKickEvent.ColumnValues[event.LogFK] = flapKickLog.ID
flapKickEvent.ColumnValues[event.AddressFK] = addressId
flapKickEvent.ColumnValues[flap_kick.BidId] = strconv.Itoa(fakeBidId)
flapKickEvent.ColumnValues[constants.BidIdColumn] = strconv.Itoa(fakeBidId)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🥇


flipKickLog := test_data.CreateTestLog(headerTwo.Id, db)
flipKickErr := test_helpers.CreateFlipKick(contractAddress, fakeBidId2, headerTwo.Id, flipKickLog.ID, test_data.FlipKickModel().ColumnValues["usr"].(string), flipKickRepo)
flipKickErr := test_helpers.CreateFlipKick(contractAddress, fakeBidId2, headerTwo.Id, flipKickLog.ID, test_data.FlipKickModel().ColumnValues["usr"].(string), db)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can use the UsrColumn constant here

flipKickModel.ColumnValues[constants.HeaderFK] = headerId
flipKickModel.ColumnValues[constants.LogFK] = logId
return repo.Create([]shared.InsertionModel{flipKickModel})
func CreateFlipKick(contractAddress string, bidId int, headerId, logId int64, usr string, db *postgres.DB) error {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💯

@gslaughl gslaughl force-pushed the vdb-977-remove-flip-kick-repo branch from 039016f to 12d95ce Compare December 9, 2019 18:31
@gslaughl gslaughl merged commit ca795bb into staging Dec 9, 2019
@gslaughl gslaughl deleted the vdb-977-remove-flip-kick-repo branch December 9, 2019 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants