fix database cleanup

This commit is contained in:
Nolan Lawson 2018-01-21 19:31:37 -08:00
parent 9e973cabd0
commit 0460a7de2d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export const cleanupOldStatuses = debounce(async () => {
if (type !== 'timeline') {
continue
}
let timeline = dbName.split('_').slice(-1)
let timeline = dbName.split('_').slice(-1)[0]
await cleanup(instanceName, timeline)
}
}