Skip to content

Instantly share code, notes, and snippets.

@LandimTiago
LandimTiago / tutorial.txt
Created January 8, 2022 17:52 — forked from luizomf/tutorial.txt
WSL2 e Docker no Windows 10.
### 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
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 })
})
})
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)