@pgpm/database-jobs 0.19.1 → 0.20.2

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.
@@ -19,6 +19,9 @@ CREATE FUNCTION app_jobs.add_job (
19
19
  DECLARE
20
20
  v_job app_jobs.jobs;
21
21
  BEGIN
22
+ -- Bake actor_id into payload
23
+ payload := (coalesce(payload, '{}'::json)::jsonb || jsonb_build_object('actor_id', jwt_public.current_user_id()))::json;
24
+
22
25
  IF job_key IS NOT NULL THEN
23
26
  -- Upsert job
24
27
  INSERT INTO app_jobs.jobs (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/database-jobs",
3
- "version": "0.19.1",
3
+ "version": "0.20.2",
4
4
  "description": "Database-specific job handling and queue management",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -24,7 +24,7 @@
24
24
  "pgpm": "^4.2.3"
25
25
  },
26
26
  "dependencies": {
27
- "@pgpm/verify": "0.19.1"
27
+ "@pgpm/verify": "0.20.0"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/constructive-io/pgpm-modules/issues"
36
36
  },
37
- "gitHead": "874490c55094ce0232bf230c613ee58685f369dc"
37
+ "gitHead": "109293dbfe8c205a9265ab36c8cb99efa5dcc1fb"
38
38
  }