Ookma-Kyi
08/12/2022, 2:11 PMNo matching function [FINDWHERE] found
Here is a gist of the error log, stack trace and code.
https://gist.github.com/ookma-kyi/25033298a88e8ac395ed22367dfddf2fwil-shiftinsert
08/12/2022, 2:19 PMresult = user.findWhere( criteria={ email = rc.email } )
You can leave out the entity name because you already defined that in your user
injection DSL.Ookma-Kyi
08/12/2022, 8:57 PMQuick couldn't figure out what to do with [findWhere] . The error returned was: Method does not exist on QueryBuilder [findWhere] We tried checking columns, aliases, scopes, and relationships locally. We also forwarded the call on to qb to see if it could do anything with it, but it couldn't.
Changed code
var token = generateRandomToken();
var now = Now();
var expiration =DateAdd("d", 1, now);
result = user.findWhere( criteria={ email = rc.email } )
if( result ) {
result.setToken( token )
.setExpiration( expiration )
.save();
}
relocate( uri = "/login" );
Any ideas?wil-shiftinsert
08/12/2022, 9:20 PMOokma-Kyi
08/12/2022, 10:09 PM