135aaeb Update build state when receives module build state change message

Authored and Committed by qwan 6 years ago
    Update build state when receives module build state change message
    
    When receives a module build state change message, if the build is
    submitted by freshmaker, which means we can find it in db, update
    the its state in db.
    
        
file modified
+47 -20
file modified
+68 -17