mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
10 lines
341 B
TypeScript
10 lines
341 B
TypeScript
import { asSnakeCase } from 'src/sql-tools/helpers';
|
|
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 || asSnakeCase(object.name);
|
|
}
|
|
};
|