wzq hace 5 años
padre
commit
2ace5c4cf6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();