提醒旧版前端分区问题

This commit is contained in:
2022-08-21 17:00:03 +08:00
parent 0e1a088575
commit 18262a62e0
4 changed files with 14 additions and 3 deletions

View File

@@ -365,7 +365,7 @@ impl Post {
.unwrap();
PostCache::init(&rconn).clear_all().await;
for room_id in [None, Some(0), Some(1), Some(42)] {
for room_id in (0..5).map(Some).chain([None, Some(42)]) {
PostListCache::init(room_id, 2, rconn).clear().await;
}
}