@adminforth/email-invite 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,7 +203,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
203
203
|
const { email, recordId } = decoded;
|
|
204
204
|
let userRecord;
|
|
205
205
|
if (recordId) {
|
|
206
|
-
userRecord = yield this.adminforth.resource(this.authResource.resourceId).get(recordId);
|
|
206
|
+
userRecord = yield this.adminforth.resource(this.authResource.resourceId).get(Filters.EQ(this.authResource.columns.find(c => c.primaryKey).name, recordId));
|
|
207
207
|
}
|
|
208
208
|
if (!userRecord && email) {
|
|
209
209
|
const records = yield this.adminforth.resource(this.authResource.resourceId).list(Filters.EQ(this.options.emailField, email), 1);
|
package/index.ts
CHANGED
|
@@ -249,7 +249,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
249
249
|
let userRecord;
|
|
250
250
|
|
|
251
251
|
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));
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
if (!userRecord && email) {
|