Skip to content

Commit

Permalink
feat: rename answers to answers2
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Apr 24, 2024
1 parent f91b85c commit a65c364
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CrosswordRepository {
final DbClient _dbClient;

static const _sectionsCollection = 'boardChunks2';
static const _answersCollection = 'answers';
static const _answersCollection = 'answers2';
static const _boardInfoCollection = 'boardInfo';

/// Fetches all sections from the board.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
late DbClient dbClient;

const sectionsCollection = 'boardChunks2';
const answersCollection = 'answers';
const answersCollection = 'answers2';

setUpAll(() {
registerFallbackValue(_MockDbEntityRecord());
Expand Down
2 changes: 1 addition & 1 deletion api/packages/hint_repository/lib/src/hint_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HintRepository {
final DbClient _dbClient;
final GenerativeModelWrapper _generativeModel;

static const _answersCollection = 'answers';
static const _answersCollection = 'answers2';
static const _hintsCollection = 'hints';
static const _boardInfoCollection = 'boardInfo';

Expand Down
2 changes: 1 addition & 1 deletion packages/board_generator/lib/src/crossword_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CrosswordRepository {
}

Future<void> _addAnswers(List<Answer> answers) async {
final answersCollection = firestore.collection('answers');
final answersCollection = firestore.collection('answers2');
for (final answer in answers) {
await answersCollection.doc(answer.id).set(answer.toJson());
}
Expand Down

0 comments on commit a65c364

Please sign in to comment.