saveOverrideAction = async (
  logger,
  symbol,
  overrideData,
  overrideReason
) => {
  logger.info(
    { symbol, overrideData, overrideReason, saveLog: true },
    `The override action is saved. Reason: ${overrideReason}`
  );

  await cache.hset(
    'trailing-trade-override',
    `${symbol}`,
    JSON.stringify(overrideData)
  );

  const notify = _.get(overrideData, 'notify', true);

  if (notify) {
    slack.sendMessage(
      `*${symbol}* Action - Queued action: ${overrideData.action}\n` +
        `- Message: ${overrideReason}`,
      { symbol, apiLimit: getAPILimit(logger) }
    );

    PubSub.publish('frontend-notification', {
      type: 'info',
      title: overrideReason
    });
  }
}
Save override action

@param {*} logger
@param {*} symbol
@param {*} overrideData
@param {*} overrideReason