mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-29 09:55:53 +00:00
9 lines
319 B
TypeScript
9 lines
319 B
TypeScript
import { Processor } from 'src/sql-tools/types';
|
|
|
|
export const processDatabases: Processor = (ctx, items) => {
|
|
for (const {
|
|
item: { object, options },
|
|
} of items.filter((item) => item.type === 'database')) {
|
|
ctx.databaseName = options.name || ctx.getNameFor({ type: 'database', name: object.name });
|
|
}
|
|
};
|