Update adminAssign.js

added update func