itizawa hace 4 años
padre
commit
9aa255340d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/slackbot-proxy/src/services/RelationsService.ts

+ 1 - 1
packages/slackbot-proxy/src/services/RelationsService.ts

@@ -31,7 +31,7 @@ export class RelationsService {
       const { supportedCommandsForBroadcastUse, supportedCommandsForSingleUse } = res.data;
       relation.supportedCommandsForBroadcastUse = supportedCommandsForBroadcastUse;
       relation.supportedCommandsForSingleUse = supportedCommandsForSingleUse;
-      relation.expiredAtCommands = addHours(supportedCommandsForSingleUse.expiredAtCommands, 48);
+      relation.expiredAtCommands = addHours(relation.expiredAtCommands, 48);
 
       return this.relationRepository.save(relation);
     }));