Skip to content

Commit

Permalink
fix(main: db): set empty value for content if value is null on …
Browse files Browse the repository at this point in the history
…migrate from v1 #38
  • Loading branch information
antonreshetov committed Apr 26, 2022
1 parent 5406083 commit 1874d1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/services/db/index.ts
Expand Up @@ -177,6 +177,7 @@ export const migrate = async (path: string) => {
content = content.map((i: any) => {
return {
...i,
value: i.value || '',
language: oldLanguageMap[i.language] || i.language
}
})
Expand Down

0 comments on commit 1874d1c

Please sign in to comment.