Skip to content

Commit bbb1905

Browse files
committed
fix: fix set-password api
1 parent a0ebc69 commit bbb1905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
249249
let userRecord;
250250

251251
if (recordId) {
252-
userRecord = await this.adminforth.resource(this.authResource.resourceId).get(recordId);
252+
userRecord = await this.adminforth.resource(this.authResource.resourceId).get(Filters.EQ(this.authResource.columns.find(c => c.primaryKey).name, recordId));
253253
}
254254

255255
if (!userRecord && email) {

0 commit comments

Comments
 (0)