mirror of
https://github.com/immich-app/immich.git
synced 2026-03-29 21:41:49 +03:00
17 lines
519 B
TypeScript
17 lines
519 B
TypeScript
import { fromColumnValue } from 'src/sql-tools/helpers';
|
|
import { Processor } from 'src/sql-tools/types';
|
|
|
|
export const processConfigurationParameters: Processor = (ctx, items) => {
|
|
for (const {
|
|
item: { options },
|
|
} of items.filter((item) => item.type === 'configurationParameter')) {
|
|
ctx.parameters.push({
|
|
databaseName: ctx.databaseName,
|
|
name: options.name,
|
|
value: fromColumnValue(options.value),
|
|
scope: options.scope,
|
|
synchronize: options.synchronize ?? true,
|
|
});
|
|
}
|
|
};
|