v3.1
This commit is contained in:
+3
-3
@@ -265,6 +265,7 @@ async function decryptDepartmentFilesToDirectory() {
|
||||
|
||||
await lockFile(loginDataPath);
|
||||
await lockFile(usersConfigPath);
|
||||
await lockFile(dirDepartmentPath);
|
||||
|
||||
await decryptFileInPlace(loginDataPath);
|
||||
await decryptFileInPlace(usersConfigPath);
|
||||
@@ -286,8 +287,7 @@ async function decryptDepartmentFilesToDirectory() {
|
||||
|
||||
await unlockFile(loginDataPath);
|
||||
await unlockFile(usersConfigPath);
|
||||
|
||||
await removeDirectory(destinationDir);
|
||||
await unlockFile(dirDepartmentPath);
|
||||
|
||||
for (const userId of users) {
|
||||
const userDir = path.join(sourceDir, userId);
|
||||
@@ -331,7 +331,7 @@ decryptAndGetServerIP(path.join(__dirname, '..', 'ipConfig.json')).then(ip => {
|
||||
serverIp = ip;
|
||||
});
|
||||
|
||||
const timeoutInterval = 7 * 60 * 1000 //minutes * seconds * miliseconds
|
||||
const timeoutInterval = 1 * 10 * 1000 //minutes * seconds * miliseconds
|
||||
|
||||
setInterval(async () => {
|
||||
await decryptDepartmentFilesToDirectory();
|
||||
|
||||
Reference in New Issue
Block a user