mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 19:38:54 +03:00
17 lines
384 B
TypeScript
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,
|
|
});
|
|
}
|
|
};
|