Adding autobind decorator to server
This commit is contained in:
@@ -7,12 +7,11 @@ import readlineSync from 'readline-sync'
|
||||
import crypto from 'crypto'
|
||||
import urlSafeBase64 from 'urlsafe-base64'
|
||||
import util from 'util'
|
||||
import autobind from 'autobind-decorator'
|
||||
|
||||
import autoBind from 'auto-bind2'
|
||||
|
||||
@autobind
|
||||
class AddUserTool {
|
||||
constructor(toolName, log) {
|
||||
autoBind(this)
|
||||
this.toolName = toolName
|
||||
this.log = log
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user