'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',
    dur: 0,
    error: 'harvest DB work is owned by the CTM DB owner worker',
  });
});
