Commit 3dbe898c authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Merge branch 'develop' into 'master'

Fix db update after 2.0.3 db issue

See merge request !25
parents d844651d b6b10123
Pipeline #29518264 passed with stages
in 4 minutes and 47 seconds
{
"name": "all-mangas-reader",
"version": "2.0.5",
"version": "2.0.6",
"description": "All Mangas Reader",
"author": "Pierre-Louis Duhoux <pl.duhoux@gmail.com>",
"scripts": {
......
......@@ -55,8 +55,7 @@ let updateApp = async function(ancVersion, curVersion) {
for (let mg of mgs) {
let sl = mg.key.indexOf("/")
let mirrorpart = mg.key.substring(0, sl)
console.log(mirrorpart + " --> " + mirrorpart.match(/^[a-z]+$/))
if (!mirrorpart.match(/^[a-z]+$/)) {
if (!mirrorpart.match(/^[0-9a-z]+$/)) {
todel.push(mg.key)
}
}
......@@ -64,6 +63,9 @@ let updateApp = async function(ancVersion, curVersion) {
console.log("deleting manga key " + td + " from db due to 2.0.3 issue")
storedb.deleteManga(td)
}
// reloads mangas
console.log("Reloading mangas after running db update")
await store.dispatch('initMangasFromDB');
})
}
/**
......
......@@ -2,7 +2,7 @@
"name": "All Mangas Reader",
"description": "__MSG_description__",
"author": "",
"version": "2.0.5",
"version": "2.0.6",
"manifest_version": 2,
"default_locale": "en",
"icons": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment