2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2019-05-17 04:11:10 +08:00
|
|
|
import { processForCaptionsPadOnly } from '/imports/api/captions/server/helpers';
|
|
|
|
import handlePadCreate from './handlers/padCreate';
|
|
|
|
import handlePadUpdate from './handlers/padUpdate';
|
2017-01-18 20:53:33 +08:00
|
|
|
|
2019-05-17 04:11:10 +08:00
|
|
|
RedisPubSub.on('PadCreateSysMsg', processForCaptionsPadOnly(handlePadCreate));
|
|
|
|
RedisPubSub.on('PadUpdateSysMsg', processForCaptionsPadOnly(handlePadUpdate));
|