chnfyi

Results comments of chnfyi

It could. As an alternative you can load some helpers and call them in your hooks using ```require(`${__hooks}/utils.js`)``` For example, if you use JSVM : `// pb_hooks/utils.js` ``` module.exports =...

Yes, it works with an up-to-date Go version. My bad ! The issue happened on a computer with limited support to Go 1.20 or earlier. I checked go.mod v0.22.23 history...

You are using PocketBase v0.23.12. Note that v0.23.0 comes with many breaking changes and requires manual migration steps. Please check the [related changelog](https://github.com/pocketbase/pocketbase/releases/tag/v0.23.0), the JSVM upgrade guide [here](https://pocketbase.io/v023upgrade/jsvm/) and the...

For information, your issue occured when you were on v0.22.x probably because the Dao instance - `new Dao(db)` - is missing in the upgrade function. ```javascript /// migrate((db) => {...

You can read the client IPs inside hooks. ```go // The IP of the last client connecting to your server. // The returned IP is safe and can be always...

Record model hooks have no access to the request context. From my understanding, you'll need to : - add an `ip_address` field to your `user_votes` collection - extract the client...

Yes, sorry for the confusion, it is not a TS compiler error but a _red underline_ showed by my editor in my JS file when i use the reference triple-slash...

Thanks ! Similarly, when the original error is under the `value` prop it seems there is an issue. ```javascript routerAdd("GET", "/test/logs", (e) => { try { // The record doesn't...

I was considering capturing incoming webhooks in a dedicated collection and adding the original error value when they fail to execute in cron jobs. Regarding my second comment, I came...

Thanks! Just out of curiosity, why did you replace `old := e.Record.Original()` with a single record retrieval ?