Skip to content

Commit

Permalink
Fix for New Staff users were getting blank status (bcgov#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanpa-aot authored Sep 13, 2023
1 parent bbfbaa7 commit ad5cefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion met-api/src/met_api/models/staff_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StaffUser(BaseModel):
email_address = Column(db.String(100), nullable=True)
contact_number = Column(db.String(50), nullable=True)
external_id = Column(db.String(50), nullable=False, unique=True)
status_id = db.Column(db.Integer, ForeignKey('user_status.id'), nullable=False, server_default='1')
status_id = db.Column(db.Integer, ForeignKey('user_status.id'), nullable=False, default=1)
tenant_id = db.Column(db.Integer, db.ForeignKey('tenant.id'), nullable=True)

@classmethod
Expand Down

0 comments on commit ad5cefe

Please sign in to comment.