mirror of
https://github.com/immich-app/immich.git
synced 2026-02-12 03:47:51 +03:00
refactor: sql-tools (#19717)
This commit is contained in:
12
server/src/sql-tools/processors/extension.processor.ts
Normal file
12
server/src/sql-tools/processors/extension.processor.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Processor } from 'src/sql-tools/types';
|
||||
|
||||
export const processExtensions: Processor = (builder, items) => {
|
||||
for (const {
|
||||
item: { options },
|
||||
} of items.filter((item) => item.type === 'extension')) {
|
||||
builder.extensions.push({
|
||||
name: options.name,
|
||||
synchronize: options.synchronize ?? true,
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user