0
我只是想在引導過程中生成一個用戶。模型更新失敗,沒有錯誤
我點擊他的更新語句,進程停止,然後超時10秒後,「Bootstrap執行回調的時間非常長(10000毫秒)」。更新錯誤永遠不會拋出。我知道用戶存在。我在嘗試更新之前已經檢查過。
User.update({id:id}, {verificationCode: verificationCode})
.then(function(updatedUser){
console.log("VerificationCode added.", updatedUser);
addInitialPermissions();
})
.catch(function(err){
if(err) throw new Error(err);
next(err);
});
我不知道問題是什麼。將不勝感激任何幫助。
感謝
你試試我的解決方案?我認爲它會起作用 –
@mryarbles聽起來好像你沒有在成功的情況下調用回調函數next()。你可以發佈'addInitialPermissions()'的代碼嗎? – Viktor