Explorar el Código

update msgObj

gemercheung hace 3 años
padre
commit
e7d231acb1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/service/msgService.js

+ 1 - 1
src/service/msgService.js

@@ -13,7 +13,7 @@ const createMessage = async (roomId, user, msg) => {
     msg: msg,
     createTime: Math.floor(Date.now() / 1000),
   };
-  return pubClient.hSet(getInKey(msgConfigKey), updateObj);
+  return pubClient.hSet(getInKey(msgConfigKey), msgObj);
 };
 
 export { createMessage };