mirror of
https://github.com/immich-app/immich.git
synced 2026-03-01 10:08:42 +03: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 });
|
|
}
|
|
};
|