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
When using bigints as resource ids a type error is thrown
TypeError: _d.call is not a function
at node_modules/@adminjs/logger/lib/log.action.js:55:178
at node_modules/adminjs/lib/backend/decorators/action/action-decorator.js:147:99
I tested this change using prisma as my adapter and didn't notice any issues, however I'm a little hesitant as I haven't been able to tell exactly what record?.params?.id?.() is supposed to do. As far as I can tell record.params is just an object, so I don't think the id() function should exist on it.
If this change looks alright I can open a PR.
The text was updated successfully, but these errors were encountered:
When using bigints as resource ids a type error is thrown
Looks like it's due to this line:
Are there any concerns with changing that to be this?
I tested this change using prisma as my adapter and didn't notice any issues, however I'm a little hesitant as I haven't been able to tell exactly what
record?.params?.id?.()
is supposed to do. As far as I can tellrecord.params
is just an object, so I don't think theid()
function should exist on it.If this change looks alright I can open a PR.
The text was updated successfully, but these errors were encountered: