fix(db): first run start fix #142
This commit is contained in:
parent
9804ee7c6c
commit
48cc01953c
@ -21,7 +21,7 @@ module.exports = async (callback, mainWindow, sphinxApp) => {
|
||||
await sphinx.query(`delete from version where id = 1`)
|
||||
await sphinx.query(`insert into version(id, version) values(1, ${version})`)
|
||||
if(sphinxApp)
|
||||
fs.writeFileSync(`${sphinxApp.directoryPath}/version.vrs`, version)
|
||||
fs.writeFileSync(`${sphinxApp.directoryPath}/version.vrs`, `${version}`)
|
||||
}
|
||||
|
||||
let patchWindow;
|
||||
|
Loading…
Reference in New Issue
Block a user