backend-plus 2.5.2-betha.18 → 2.5.2-betha.19

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.
@@ -2988,7 +2988,7 @@ AppBackend.prototype.dumpDbSchemaPartial = async function dumpDbSchemaPartial(pa
2988
2988
  }
2989
2989
  }
2990
2990
  lines.push(`
2991
- create or replace procedure set_app_user(p_user text)
2991
+ create or replace procedure set_app_user(p_username text)
2992
2992
  security definer language plpgsql
2993
2993
  as
2994
2994
  $body$
@@ -2997,7 +2997,7 @@ declare
2997
2997
  ${db.quoteIdent('v_'+fieldName)} text;`
2998
2998
  ).join('')}
2999
2999
  begin
3000
- if p_user = '!login' then
3000
+ if p_username = '!login' then
3001
3001
  ${be.config.login.infoFieldList.map(fieldName => `
3002
3002
  set backend_plus._${fieldName} = '!';`).join('')}
3003
3003
 
@@ -3009,13 +3009,13 @@ begin
3009
3009
  from ${(be.config.login.from ?? (
3010
3010
  (be.config.login.schema?be.db.quoteIdent(be.config.login.schema)+'.':'')+
3011
3011
  be.db.quoteIdent(be.config.login.table)))}
3012
- where ${db.quoteIdent(be.config.login.userFieldName)} = p_user;
3012
+ where ${db.quoteIdent(be.config.login.userFieldName)} = p_username;
3013
3013
  ${be.config.login.infoFieldList.map(fieldName => `
3014
3014
  perform set_config('backend_plus._${fieldName}', v_${fieldName}, false);`).join('')}
3015
3015
 
3016
3016
  set backend_plus._mode = normal;
3017
3017
  end if;
3018
- perform set_config('backend_plus._user', p_user, false);
3018
+ perform set_config('backend_plus._user', p_username, false);
3019
3019
  end;
3020
3020
  $body$;
3021
3021
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for the anti Pareto rule",
4
- "version": "2.5.2-betha.18",
4
+ "version": "2.5.2-betha.19",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",