Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza committed Oct 29, 2023
1 parent 41492dc commit 3535b84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,67 +6,33 @@
"code": "E020",
"pos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 186,
"line": 9,
"offset": 160,
"line": 8,
"column": 55
},
"endPos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 193,
"line": 9,
"offset": 167,
"line": 8,
"column": 62
}
},
{
"message": "Cannot compare Password with operator '='",
"hint": "Did you mean ?",
"code": "E027",
"pos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 235,
"line": 10,
"column": 41
},
"endPos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 236,
"line": 10,
"column": 42
}
},
{
"message": "'unknown' not found on 'Identity'",
"hint": "Did you mean one of email, emailVerified, password, externalId, issuer, id, createdAt, or updatedAt?",
"code": "E020",
"pos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 356,
"line": 13,
"offset": 264,
"line": 11,
"column": 55
},
"endPos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 363,
"line": 13,
"offset": 271,
"line": 11,
"column": 62
}
},
{
"message": "Cannot compare Password with operator '='",
"hint": "Did you mean ?",
"code": "E027",
"pos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 405,
"line": 14,
"column": 41
},
"endPos": {
"filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel",
"offset": 406,
"line": 14,
"column": 42
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
model UserExtension {
fields {
unknown Text
password Password
}

actions {
create createExt() {
@set(userExtension.unknown = ctx.identity.unknown)
@set(userExtension.password = ctx.identity.password)
}
update updateExt(id) {
update updateExt(id) {
@set(userExtension.unknown = ctx.identity.unknown)
@set(userExtension.password = ctx.identity.password)
}
}
}

0 comments on commit 3535b84

Please sign in to comment.