fix database cleanup

This commit is contained in:
Nolan Lawson 2018-01-21 19:31:37 -08:00
parent 9e973cabd0
commit 0460a7de2d

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)
}
}