@unchainedshop/plugins
Version:
Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters
14 lines (13 loc) • 497 B
JavaScript
import { WorkerAdapter, WorkerDirector } from '@unchainedshop/core';
export const ExternalWorkerPlugin = {
...WorkerAdapter,
key: 'shop.unchained.worker-plugin.external',
label: 'External plugin as a placeholder for workers who interact with the system only via GraphQL',
version: '1.0.0',
type: 'EXTERNAL',
external: true,
async doWork() {
throw new Error('Cannot do work for external workers');
},
};
WorkerDirector.registerAdapter(ExternalWorkerPlugin);