不要怂,就是干,撸起袖子干!

Commit 46d6c35c by Abdul Raheem Committed by GitHub

docs: fix incorrect model validation example (#13470)

Closes #13438

Co-authored-by: AllAwesome497 <47748690+AllAwesome497@users.noreply.github.com>
1 parent 6a737fe7
...@@ -16,8 +16,10 @@ const User = sequelize.define("user", { ...@@ -16,8 +16,10 @@ const User = sequelize.define("user", {
}, },
hashedPassword: { hashedPassword: {
type: DataTypes.STRING(64), type: DataTypes.STRING(64),
validate: {
is: /^[0-9a-f]{64}$/i is: /^[0-9a-f]{64}$/i
} }
}
}); });
(async () => { (async () => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!