Skip to content

Commit

Permalink
Hotfix cleanup patch (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasamato authored Oct 23, 2023
1 parent 02e7586 commit 3e03844
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cleanup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ if (!dbCollections.includes('libraries')) {
)
}

if (!dbCollections.includes('columns')) {
if (!dbCollections.includes('columns') || !dbCollections.includes('items')) {
console.error('Database seems empty, skipping columns...')
} else {
const columns = await db.collection('columns').find().toArray()
Expand All @@ -198,11 +198,7 @@ if (!dbCollections.includes('columns')) {
})
)
console.log('Cleaned up columns\n')
}

if (!dbCollections.includes('items')) {
console.error('Database seems empty, skipping items...')
} else {
let items = await db.collection('items').find().toArray()
const livingLang = iso6393.filter((lang) => lang.type === 'living')
await Promise.all(
Expand Down

0 comments on commit 3e03844

Please sign in to comment.