wzq 5 lat temu
rodzic
commit
2ace5c4cf6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Repositories/TopicRepository.php

+ 1 - 1
app/Repositories/TopicRepository.php

@@ -80,7 +80,7 @@ class TopicRepository {
                 }
             }
             DB::commit();
-            Redis::zadd('topic.name', $topicInfo->name, $topicInfo->id);
+            Redis::zadd('topic.name', $topicInfo->id, $topicInfo->name);
             return Response::create();
         }catch (QueryException $exception){
             DB::rollBack();