'use strict';

const { parentPort } = require('node:worker_threads');

parentPort.on('message', (msg) => {
  if (msg?.type === 'close') {
    parentPort.postMessage({ type: 'closed' });
    return;
  }
  parentPort.postMessage({
    type: 'error',
    requestId: msg?.requestId,
    dur: 0,
    error: 'conversation import DB work is owned by the CTM DB owner worker',
  });
});
