Skip to content

Commit

Permalink
Merge pull request #40 from NfoAlex/FixConfigMystery
Browse files Browse the repository at this point in the history
[fix] - サーバーデータのJSON適用がごみ
  • Loading branch information
NfoAlex committed Jul 4, 2023
2 parents fed02da + 7163ed1 commit 1a49250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ try { //読み込んでみる
//serverデータを読み取り
let dataServerLoaded = JSON.parse(fs.readFileSync('./server.json', 'utf-8')); //サーバー情報のJSON読み込み
//テンプレに上書きする感じでサーバー情報を取り込む
dataServer = {...dataServerInitText, ...dataServerLoaded};
dataServer = {...JSON.parse(dataServerInitText), ...dataServerLoaded};
} catch(e) {
//初期のサーバー情報
fs.writeFileSync("./server.json", dataServerInitText); //JSONファイルを作成
Expand Down

0 comments on commit 1a49250

Please sign in to comment.