init notification
This commit is contained in:
16
src/socket/socket.service.ts
Normal file
16
src/socket/socket.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Injectable } from "@nestjs/common";
|
||||
import { InjectModel } from "@nestjs/sequelize";
|
||||
import { SocketModel } from "./models/socket.model";
|
||||
|
||||
@Injectable()
|
||||
export class SocketService {
|
||||
constructor(
|
||||
@InjectModel(SocketModel)
|
||||
private socketModel: typeof SocketModel,
|
||||
) {
|
||||
}
|
||||
|
||||
ClientConnection(data) {
|
||||
this.socketModel.create(data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user