Files
Agent-n8n/n8n-n8n-1.109.2/scripts/backend-module/my-feature.repository.template

16 lines
382 B
Plaintext
Raw Normal View History

2025-09-08 04:48:28 +08:00
import { Service } from '@n8n/di';
import { DataSource, Repository } from '@n8n/typeorm';
import { MyFeatureEntity } from './my-feature.entity';
@Service()
export class MyFeatureRepository extends Repository<MyFeatureEntity> {
constructor(dataSource: DataSource) {
super(MyFeatureEntity, dataSource.manager);
}
async getSummary() {
return await Promise.resolve({});
}
}