Commit 12f4a793da0894386b837fe0c0707cc514a57330
1 parent
08c7f4069c
Exists in
master
Fix missing await
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/smstools-util.js
... | ... | @@ -16,7 +16,7 @@ exports.restart = () => new Promise((resolve) => { |
16 | 16 | |
17 | 17 | exports.fileCountOnDir = async (dirname) => { |
18 | 18 | try { |
19 | - const files = fs.promises.readdir(dirname); | |
19 | + const files = await fs.promises.readdir(dirname); | |
20 | 20 | return files.filter((item) => item.search(/LOCK$/) >= 0).length; |
21 | 21 | } catch (e) { |
22 | 22 | logger.warn('SMSTOOLS-UTIL: Exception on fileCountOnDir', { |