|
@@ -185,7 +185,7 @@ class BankClient {
|
|
|
return uploadResponse.hash;
|
|
return uploadResponse.hash;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- appendPrivate(slim, peerAddr, topic, hash, replaceHash, deleteHash) {
|
|
|
|
|
|
|
+ appendPrivate(dontLogToAll, peerAddr, topic, hash, replaceHash, deleteHash) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
const nonce = yield this.getNonce();
|
|
const nonce = yield this.getNonce();
|
|
|
const payload = yield this.makePlaintextPayload(JSON.stringify({
|
|
const payload = yield this.makePlaintextPayload(JSON.stringify({
|
|
@@ -204,8 +204,8 @@ class BankClient {
|
|
|
method: 'PUT',
|
|
method: 'PUT',
|
|
|
url: topicURL
|
|
url: topicURL
|
|
|
});
|
|
});
|
|
|
- if (!slim && topic !== 'all' && !deleteHash) {
|
|
|
|
|
- yield this.appendPrivate(slim, peerAddr, 'all', hash, undefined, undefined);
|
|
|
|
|
|
|
+ if (!dontLogToAll && topic !== 'all' && !deleteHash) {
|
|
|
|
|
+ yield this.appendPrivate(true, peerAddr, 'all', hash, undefined, undefined);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|