Add admin review debug screen
Some checks failed
Build and deploy Flutter Web / build (push) Failing after 14s
Some checks failed
Build and deploy Flutter Web / build (push) Failing after 14s
This commit is contained in:
@@ -167,7 +167,12 @@ class PlaceController extends AsyncNotifier<PlaceState> {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> publishReview({required PlaceRecommendation place}) async {
|
||||
Future<void> publishReview({
|
||||
required PlaceRecommendation place,
|
||||
required String audioObjectKey,
|
||||
required String audioContentBase64,
|
||||
required String audioMimeType,
|
||||
}) async {
|
||||
final value = state.requireValue;
|
||||
if (!value.hasTelegramAuth) {
|
||||
throw StateError('Открой через Telegram, чтобы оставить голос.');
|
||||
@@ -180,7 +185,9 @@ class PlaceController extends AsyncNotifier<PlaceState> {
|
||||
googleName: place.name,
|
||||
coordinate: place.coordinate,
|
||||
durationSeconds: draft.duration.inSeconds,
|
||||
audioObjectKey: 'web-recording-${DateTime.now().microsecondsSinceEpoch}',
|
||||
audioObjectKey: audioObjectKey,
|
||||
audioContentBase64: audioContentBase64,
|
||||
audioMimeType: audioMimeType,
|
||||
);
|
||||
|
||||
final places = await _api.fetchPlaces();
|
||||
|
||||
Reference in New Issue
Block a user