Fix more async store issues

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

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)