mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
9 lines
309 B
TypeScript
9 lines
309 B
TypeScript
|
|
import { Processor } from 'src/sql-tools/from-code/processors/type';
|
||
|
|
|
||
|
|
export const processFunctions: Processor = (builder, items) => {
|
||
|
|
for (const { item } of items.filter((item) => item.type === 'function')) {
|
||
|
|
// TODO log warnings if function name is not unique
|
||
|
|
builder.functions.push(item);
|
||
|
|
}
|
||
|
|
};
|