Files
immich/server/src/sql-tools/processors/extension.processor.ts
2025-07-08 08:17:40 -04:00

17 lines
384 B
TypeScript

import { Processor } from 'src/sql-tools/types';
export const processExtensions: Processor = (ctx, items) => {
if (ctx.options.extensions === false) {
return;
}
for (const {
item: { options },
} of items.filter((item) => item.type === 'extension')) {
ctx.extensions.push({
name: options.name,
synchronize: options.synchronize ?? true,
});
}
};