wzq 5 år sedan
förälder
incheckning
2ace5c4cf6
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Repositories/TopicRepository.php

+ 1 - 1
app/Repositories/TopicRepository.php

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