import { LogsStrategy } from './LogsStrategy' ; export class SendIfActivateLogsStrategy extends LogsStrategy { constructor ( docKey ) { super ( docKey ) ; } public sendLogs ( obj , share ) { this . dbLocal . store ( obj ) ; if ( share ) { this . dbDistant . send ( obj ) ; } } }