twidi / Repos.io

The source code of the Repos.io site, a site to help you manage all your repositories (your own, and watched/liked/followed ones) hosted by different providers (github, bitbucket)
http://repos.io
Other
102 stars 10 forks source link

Use `update` and not `save` when possible #20

Open twidi opened 12 years ago

twidi commented 12 years ago

Because the save method save all fields in the object, it could create race conditions. So we have to use update to only update needed fields.