summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2021-04-20 11:16:08 +0200
committerJannik Schönartz2021-04-20 11:16:08 +0200
commite95810dd8c2d0769ef7a695a179739ca30b8cc4b (patch)
treeedfb3386b4d663dc0a64b9c34b54464ffba2976d
parent[server/idoit] store json in description of ram module for easier parsing (if... (diff)
downloadbas-e95810dd8c2d0769ef7a695a179739ca30b8cc4b.tar.gz
bas-e95810dd8c2d0769ef7a695a179739ca30b8cc4b.tar.xz
bas-e95810dd8c2d0769ef7a695a179739ca30b8cc4b.zip
[server/pci] Fix bug where the downloaded data was accessed before it was downloaded.
-rw-r--r--server/lib/pci/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/pci/index.js b/server/lib/pci/index.js
index d43e154..163f78e 100644
--- a/server/lib/pci/index.js
+++ b/server/lib/pci/index.js
@@ -80,7 +80,7 @@ async function downloadPciIds (sha) {
const file = buffer.toString('utf-8')
// Override the content in the pci.ids file with the new one
- fs.writeFile(pciIdsFilePath, file, { flag: 'w' }, (err) => {
+ fs.writeFileSync(pciIdsFilePath, file, { flag: 'w' }, (err) => {
if (err) throw err
// Reparse the pci file