Saving the bot code and retrieving it without the cache
This commit is contained in:
1 parent
067f4f46f6
commit
cbc9db1f8d
7 files changed
+44
-31
No files matched your search
+6
-2
@@ -17,7 +17,7 @@
|
||||
|
||||
}
|
||||
|
||||
function getStorageData(pOrg, pRepo, pPath, callBackFunction) {
|
||||
function getStorageData(pOrg, pRepo, pPath, saveAtCache, callBackFunction) {
|
||||
|
||||
try {
|
||||
|
||||
@@ -72,8 +72,12 @@
|
||||
if (CONSOLE_LOG === true) { console.log("[INFO] Storage -> getStorageData -> onFileReceived -> pRepo = " + pRepo); }
|
||||
if (CONSOLE_LOG === true) { console.log("[INFO] Storage -> getStorageData -> onFileReceived -> pPath = " + pPath); }
|
||||
|
||||
storageData.set(pOrg + '.' + pRepo + '.' + pPath, text);
|
||||
if (saveAtCache === true) {
|
||||
|
||||
storageData.set(pOrg + '.' + pRepo + '.' + pPath, text);
|
||||
|
||||
}
|
||||
|
||||
if (err !== null || text === null) {
|
||||
|
||||
if (CONSOLE_LOG === true) { console.log("[ERROR] Storage -> getStorageData -> onFileReceived -> Error Received from Storage Library. "); }
|
||||
|
||||
Reference in new issue
Block a user