Add agent level progression and extend backend services.
Introduce agent level utilities/service, expand auth and notification flows, update category definitions and seed data, and wire level-aware order and suggestion handling.
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
assertTransition,
|
||||
} from '../common/utils/order-transitions';
|
||||
import { resolveMaxMeterage } from '../common/utils/meterage';
|
||||
import { AgentLevelService } from '../agent/agent-level.service';
|
||||
import { NotificationsService } from '../notifications/notifications.service';
|
||||
import { eventForStatus } from '../notifications/notification-events';
|
||||
import { joinFullName, splitFullName } from '../common/utils/name';
|
||||
@@ -81,6 +82,7 @@ export class OrdersService {
|
||||
constructor(
|
||||
private readonly prisma: PrismaService,
|
||||
private readonly notifications: NotificationsService,
|
||||
private readonly agentLevelService: AgentLevelService,
|
||||
) {}
|
||||
|
||||
async findMyOrders(userId: string) {
|
||||
@@ -498,6 +500,8 @@ export class OrdersService {
|
||||
}
|
||||
});
|
||||
|
||||
await this.agentLevelService.syncAgentForOrder(id);
|
||||
|
||||
return this.findAdminOrder(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user