You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class CustomInstance {
static uniqueEmail(email, @type(Database) database) {
if (email != null && database.hasEmail(email)) {
return ${email} is already taken;
}
}
}
function type(target, propertyKey, parameterIndex) {
...
}
The first argument (target) passed to the type decorator for static method uniqueEmail receives the CustomerInstance.prototype and not the CustomerInstance class itself. This breaks managing the metadata
The text was updated successfully, but these errors were encountered:
I have a class that looks like
class CustomInstance {
static uniqueEmail(email, @type(Database) database) {
if (email != null && database.hasEmail(email)) {
return
${email} is already taken
;}
}
}
function type(target, propertyKey, parameterIndex) {
...
}
The first argument (target) passed to the type decorator for static method uniqueEmail receives the CustomerInstance.prototype and not the CustomerInstance class itself. This breaks managing the metadata
The text was updated successfully, but these errors were encountered: