사용자 화면 문구·표본 데이터 · 퀘스트 참여 흐름 · HOME 진입 구획 · 미니맵 · 공통 확인 창 배치 수정
This commit is contained in:
@@ -95,6 +95,18 @@ class FirestoreInsideRepository implements InsideRepository {
|
||||
);
|
||||
}
|
||||
|
||||
/// 팬덤과 상관없이 내가 쓴 질문 전부(`authorUid` 등호 하나라 복합 색인이 필요 없다).
|
||||
// ponytail: 정렬은 앱에서 한다. 한 사람의 질문이 수백 건을 넘으면 orderBy + 복합 색인 + 페이지로.
|
||||
@override
|
||||
Future<List<InsideQuestion>> mine() async {
|
||||
final snap = await _backend.db
|
||||
.collection('questions')
|
||||
.where('authorUid', isEqualTo: _backend.requireUid)
|
||||
.get();
|
||||
return [for (final doc in snap.docs) _question(doc)]
|
||||
..sort((a, b) => b.createdAt.compareTo(a.createdAt));
|
||||
}
|
||||
|
||||
@override
|
||||
Future<int> balance() async {
|
||||
final wallet =
|
||||
|
||||
Reference in New Issue
Block a user