Browse Source

realtime3

Fares 10 months ago
parent
commit
7af287c12e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/handlers/upload_handler.dart

+ 2 - 2
lib/handlers/upload_handler.dart

@@ -73,8 +73,8 @@ Future<Response> handleFileUpload(Request request) async {
             final timestamp = nowdt.millisecondsSinceEpoch.toString();
 
             // No need to subscribe to channel
-            final channel = supabase.channel('csvhichstorage');
-            final res = await channel.sendBroadcastMessage(
+            final res =
+                await supabase.channel('csvhichstorage').sendBroadcastMessage(
               event: "upload",
               payload: {
                 "filename": filename,