mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 19:38:54 +03:00
13 lines
333 B
TypeScript
13 lines
333 B
TypeScript
import { Processor } from 'src/sql-tools/types';
|
|
|
|
export const processExtensions: Processor = (builder, items) => {
|
|
for (const {
|
|
item: { options },
|
|
} of items.filter((item) => item.type === 'extension')) {
|
|
builder.extensions.push({
|
|
name: options.name,
|
|
synchronize: options.synchronize ?? true,
|
|
});
|
|
}
|
|
};
|