|
|
@@ -67,16 +67,6 @@ export class ChannelService {
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
- // private async generateNextChannelNo(): Promise<number> {
|
|
|
- // const last = await this.mongoPrismaService.channel.findFirst({
|
|
|
- // where: { channelNo: { isSet: true } },
|
|
|
- // orderBy: { channelNo: 'desc' },
|
|
|
- // select: { channelNo: true },
|
|
|
- // });
|
|
|
-
|
|
|
- // return (last?.channelNo ?? 0) + 1;
|
|
|
- // }
|
|
|
-
|
|
|
private async generateNextChannelIdNo(): Promise<number> {
|
|
|
const res = await this.mongoPrismaService.$runCommandRaw({
|
|
|
aggregate: 'channel',
|