fix(ObjectSources): change where promise is resolved from onsuccess to oncomplete on the transaction