mirror of
https://github.com/immich-app/immich.git
synced 2025-12-16 01:55:22 -05:00
10 lines
319 B
TypeScript
10 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 });
|
|
}
|
|
};
|