Fix more async store issues

This commit is contained in:
yflory committed 2017-11-30 18:22:26 +01:00
1 parent d1277d7026
commit 664625a6ef
7 files changed
+57 -30

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ define([
editHash = hash;
}));
}).nThen(function () {
if (!editHash) {
if (editHash) {
return void cb(null, Hash.getSecrets('profile', editHash));
}
// 3rd case: profile creation (create a new random hash, store it later if needed)