Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(@Inject('TableService') private tableService: TableService) {
this.tableService.doesTableExist(this.tableName, (error, result) => {
if (!result.exists) {
this.tableService.createTable(this.tableName, (error, result) => {
console.log(error);
console.log(result);
});
}
});
}
constructor(@Inject('TableService') private tableService: TableService) {
this.tableService.doesTableExist(this.tableName, (error, result) => {
if (!result.exists) {
this.tableService.createTable(this.tableName, (error, result) => {
console.log(error);
console.log(result);
});
}
});
}
addMentor(mentee: MenteeEntity): Promise {
constructor(
@Inject('IMentorRepository') private mentorRepository: IMentorRepository
) {}
index = async (context: Context, req: HttpRequest): Promise => {
constructor(
@Inject(MESSAGES) private messages: MessageDbObject[],
@Inject(CHATS) private chats: ChatDbObject[],
) {}
constructor(
@Inject(CHATS) private chats: ChatDbObject[],
@Inject(MESSAGES) private messages: MessageDbObject[],
) {}
constructor(
@Inject('IMenteeRepository') private menteeRepository: IMenteeRepository
) {}
index = async (context: Context, req: HttpRequest): Promise => {
constructor(
@Inject(CHATS) private chats: ChatDbObject[],
@Inject(MESSAGES) private messages: MessageDbObject[],
) {}
constructor(
@Inject('IMentorRepository') private mentorRepository: IMentorRepository
) {}
index = async (context: Context, req: HttpRequest): Promise => {
constructor(
@Inject(MESSAGES) private messages: MessageDbObject[],
@Inject(CHATS) private chats: ChatDbObject[],
) {}