mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-24 09:58:53 -04:00
We found that the reporting task failed twice because of integrity constraints.
This was because the rate_multiplier was being added as 1 and 1.0 which was not resolving to the same. This updates the table to use Integrer. Also changed the logging for the task.
This commit is contained in:
@@ -1784,10 +1784,10 @@ class FactBilling(db.Model):
|
||||
service_id = db.Column(UUID(as_uuid=True), nullable=False, index=True)
|
||||
notification_type = db.Column(db.Text, nullable=False, primary_key=True)
|
||||
provider = db.Column(db.Text, nullable=True, primary_key=True)
|
||||
rate_multiplier = db.Column(db.Numeric(), nullable=True, primary_key=True)
|
||||
rate_multiplier = db.Column(db.Integer(), nullable=True, primary_key=True)
|
||||
international = db.Column(db.Boolean, nullable=False, primary_key=False)
|
||||
rate = db.Column(db.Numeric(), nullable=True)
|
||||
billable_units = db.Column(db.Numeric(), nullable=True)
|
||||
billable_units = db.Column(db.Integer(), nullable=True)
|
||||
notifications_sent = db.Column(db.Integer(), nullable=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user