We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03dbac4 commit 2c63e2cCopy full SHA for 2c63e2c
lib/src/services/database_seeding_service.dart
@@ -109,6 +109,12 @@ class DatabaseSeedingService {
109
_log.info('Seeding RemoteConfig...');
110
try {
111
final remoteConfigCollection = _db.collection('remote_configs');
112
+ if (remoteConfigsFixturesData.isEmpty) {
113
+ _log.warning(
114
+ 'Remote config fixture data is empty. Skipping RemoteConfig seeding.',
115
+ );
116
+ return;
117
+ }
118
final defaultRemoteConfigId = remoteConfigsFixturesData.first.id;
119
final objectId = ObjectId.fromHexString(defaultRemoteConfigId);
120
0 commit comments