-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: handle auction bid success event #676
Conversation
6a622f1
to
de510e1
Compare
de510e1
to
b9abc8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!!!
scripts/addAuctionTimestamp.sql
Outdated
@@ -0,0 +1 @@ | |||
UPDATE parcels SET auction_timestamp = 1517356800000 where auction_owner IS NOT NULL AND auction_price IS NOT NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add this query to the migration up? how can we run it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, historically we've been running .sql
files directly on the server, but this should be done each time the migration runs, I'll change it 👍
Had to add a new migration, also updated initDb
@@ -31,18 +31,6 @@ export class Asset { | |||
return assets[0] | |||
} | |||
|
|||
findByIds(ids) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we are removing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used anywhere and was a security concern, ids was being interpolated and could be SQL injected
@@ -33,10 +33,6 @@ export class Parcel extends Model { | |||
return splitCoordinate(id) | |||
} | |||
|
|||
static findByIds(ids) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we are removing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used anywhere and was a security concern, ids was being interpolated and could be SQL injected
ac44c75
to
b3828c4
Compare
requires a migrate up!
Closes #612