This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Tutorial oficial: | |
https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
### Passo 1 (PowerShell Admin): | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
### Passo 2 (PowerShell Admin): | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
### Passo 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit(req, res) { | |
member.find(req.params.id, function (member) { | |
if (!member) return res.send("Intructor not found!") | |
member.birth = date(member.birth).iso | |
member.instructorsSelectOptions(function (options) { | |
return res.render("members/edit", { members, instructorOptions: options }) | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Codigos\DB-gym\src\app\controllers\members.js:42 | |
member.instructorsSelectOptions(function (options) { | |
^ | |
TypeError: member.instructorsSelectOptions is not a function | |
at D:\Codigos\DB-gym\src\app\controllers\members.js:42:20 | |
at D:\Codigos\DB-gym\src\app\models\member.js:50:13 | |
at Query.<anonymous> (D:\Codigos\DB-gym\node_modules\pg-pool\index.js:371:18) | |
at Query.handleReadyForQuery (D:\Codigos\DB-gym\node_modules\pg\lib\query.js:121:12) | |
at Connection.<anonymous> (D:\Codigos\DB-gym\node_modules\pg\lib\client.js:256:19) |