0
Cloudantでデータベースにクエリを実行すると、「Cloudantで一時ビューが無効になっています」というエラーが表示され、403 forbidden
が表示されます。Cloudantでtempビューが無効にされています
これを避けるためにクエリを書き直す手助けができますか?
おかげ
.factory('usersDatabaseRemote', [
'pouchDB',
function (pouchDB) {
'use strict';
var usersDatabaseRemote = pouchDB('https://id:[email protected]/board_users');
return usersDatabaseRemote;
}
])
と:彼らはあまりにもユーザーエラーの原因の大きなので、維持する価値がないことが決定されたので、
usersDatabaseRemote.query(mapByEmail, {
key: email,
include_docs: true
}).then(function (result) {
if (!result.rows.length) { //email doesn't exist in DB
return callback(false);
}
if (result.rows.length === 1) {
return callback(result);
}
console.log("problem : several docs in the DB with same email, run a duplicate check on the DB");
return callback(result);
});