mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Refactoring
This commit is contained in:
parent
7bf3e2eb3f
commit
2f42a73b9a
1 changed files with 4 additions and 4 deletions
|
@ -397,11 +397,11 @@ private extension ContentDatabase {
|
|||
|
||||
func clean() {
|
||||
databaseWriter.asyncWrite {
|
||||
try TimelineStatusJoin.filter(Column("id") != Timeline.home.id).deleteAll($0)
|
||||
try TimelineStatusJoin.filter(Column("timelineId") != Timeline.home.id).deleteAll($0)
|
||||
try StatusContextJoin.deleteAll($0)
|
||||
try AccountPinnedStatusJoin.deleteAll($0)
|
||||
try AccountStatusJoin.deleteAll($0)
|
||||
} completion: { _, _ in }
|
||||
databaseWriter.asyncWrite { try StatusContextJoin.deleteAll($0) } completion: { _, _ in }
|
||||
databaseWriter.asyncWrite { try AccountPinnedStatusJoin.deleteAll($0) } completion: { _, _ in }
|
||||
databaseWriter.asyncWrite { try AccountStatusJoin.deleteAll($0) } completion: { _, _ in }
|
||||
}
|
||||
}
|
||||
// swiftlint:enable file_length
|
||||
|
|
Loading…
Reference in a new issue