|
1 | | -<<<<<<< HEAD |
2 | 1 | import { LOCALE_KEY } from '@/constants' |
3 | 2 | import { db } from '@/database/db' |
4 | 3 | import { channels, flows } from '@/database/schema' |
@@ -33,30 +32,6 @@ export class FlowService { |
33 | 32 | @Inject(LOCALE_KEY) private readonly localeService: LocaleService, |
34 | 33 | private readonly chanelService: ChannelService, |
35 | 34 | ) {} |
36 | | -======= |
37 | | -import { LOCALE_KEY } from '@/constants'; |
38 | | -import { db } from '@/database/db'; |
39 | | -import { channels, flows } from '@/database/schema'; |
40 | | -import { TNewFlow } from '@/database/types'; |
41 | | -import { FlowDTO } from '@/dtos/flows.dto'; |
42 | | -import { PagingDTO } from '@/dtos/paging.dto'; |
43 | | -import { HttpException } from '@/exceptions/http-exception'; |
44 | | -import { LocaleService } from '@/i18n/ctx'; |
45 | | -import { FlowExtend } from '@/interfaces/flows.interface'; |
46 | | -import { Paging } from '@/interfaces/paging.interface'; |
47 | | -import { and, asc, desc, eq, isNotNull, like, ne, notExists, sql } from 'drizzle-orm'; |
48 | | -import { StatusCodes } from 'http-status-codes'; |
49 | | -import { omit } from 'lodash'; |
50 | | -import { Inject, Service } from 'typedi'; |
51 | | -import { ChannelService } from './channels.service'; |
52 | | - |
53 | | -@Service() |
54 | | -export class FlowService { |
55 | | - constructor( |
56 | | - @Inject(LOCALE_KEY) private readonly localeService: LocaleService, |
57 | | - private readonly chanelService: ChannelService |
58 | | - ) { } |
59 | | ->>>>>>> origin/main |
60 | 35 |
|
61 | 36 | public async create(fields: TNewFlow) { |
62 | 37 | const flowExisted = await db.query.flows.findFirst({ |
|
0 commit comments