mirror of
https://github.com/immich-app/immich.git
synced 2026-01-12 07:00:34 -05:00
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
import { Processor } from 'src/sql-tools/types';
|
|
|
|
export const processFunctions: Processor = (ctx, items) => {
|
|
if (ctx.options.functions === false) {
|
|
return;
|
|
}
|
|
|
|
for (const { item } of items.filter((item) => item.type === 'function')) {
|
|
// TODO log warnings if function name is not unique
|
|
ctx.functions.push(item);
|
|
}
|
|
};
|