Update profile revision on profile update.

This commit is contained in:
FelisCatus 2014-12-16 19:44:39 +08:00
parent f5789f7fda
commit ab36b6eba6

View File

@ -490,6 +490,7 @@ class Options
results[key] = @fetchUrl(url, opt_bypass_cache).then((data) =>
profile = OmegaPac.Profiles.byKey(key, @_options)
OmegaPac.Profiles.update(profile, data)
OmegaPac.Profiles.updateRevision(profile)
changes = {}
changes[key] = profile
@_setOptions(changes).return(profile)