completed foreground i18n for private console

This commit is contained in:
strawmanbobi
2020-06-13 21:32:37 +08:00
parent 59153238f2
commit 7fc902a540
19 changed files with 1167 additions and 458 deletions

View File

@@ -597,16 +597,13 @@ exports.deleteRemoteIndexWorkUnit = function (remoteIndex, adminID, callback) {
if(remoteIndex.contributor.indexOf(result) == -1) {
logger.info("the admin " + result + " could not change this remote index");
callback(errorCode.FAILED);
return;
} else {
remoteIndex.status = enums.ITEM_INVALID;
RemoteIndex.updateRemoteIndex(remoteIndex.id, remoteIndex,
function(deleteRemoteIndexErr, updatedRemoteIndex) {
callback(deleteRemoteIndexErr);
});
}
key = "admin_" + adminID;
adminAuth.getAuthInfo(key, function(getAdminAuthErr, result) {
if (errorCode.SUCCESS.code == getAdminAuthErr.code && null != result) {
callback(errorCode.SUCCESS);
} else {
callback(errorCode.FAILED);
}
});
} else {
callback(errorCode.FAILED);
}