@devopsplaybook.io/common-utils 1.5.0-beta.14.ab98f42 → 1.5.0-beta.14.dd2303d

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.
@@ -71,7 +71,7 @@ async function AuthInit(context, configIn, allScopes = []) {
71
71
  const authKeyRaw = await (0, DbUtils_1.DbUtilsQuerySQL)(span, SQL_QUERIES.GET_AUTH_TOKEN);
72
72
  if (authKeyRaw.length == 0) {
73
73
  configIn.JWT_KEY = (0, uuid_1.v4)();
74
- await (0, DbUtils_1.DbUtilsQuerySQL)(span, SQL_QUERIES.INSERT_AUTH_TOKEN, [
74
+ await (0, DbUtils_1.DbUtilsExecSQL)(span, SQL_QUERIES.INSERT_AUTH_TOKEN, [
75
75
  configIn.JWT_KEY,
76
76
  new Date().toISOString(),
77
77
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopsplaybook.io/common-utils",
3
- "version": "1.5.0-beta.14.ab98f42",
3
+ "version": "1.5.0-beta.14.dd2303d",
4
4
  "description": "Shared utility modules for devopsplaybook.io projects (DB, Config, OTel context, auth/users, notifications, LLM, system helpers)",
5
5
  "keywords": [
6
6
  "Open Telemetry",
package/src/users/Auth.ts CHANGED
@@ -2,7 +2,7 @@ import { StandardTracer } from "@devopsplaybook.io/otel-utils";
2
2
  import { Span } from "@opentelemetry/sdk-trace-base";
3
3
  import * as jwt from "jsonwebtoken";
4
4
  import { v4 as uuidv4 } from "uuid";
5
- import { DbUtilsQuerySQL } from "../DbUtils";
5
+ import { DbUtilsExecSQL, DbUtilsQuerySQL } from "../DbUtils";
6
6
  import { User, UserScope } from "./User";
7
7
  import { UserSession } from "./UserSession";
8
8
 
@@ -48,7 +48,7 @@ export async function AuthInit(
48
48
  const authKeyRaw = await DbUtilsQuerySQL(span, SQL_QUERIES.GET_AUTH_TOKEN);
49
49
  if (authKeyRaw.length == 0) {
50
50
  configIn.JWT_KEY = uuidv4();
51
- await DbUtilsQuerySQL(span, SQL_QUERIES.INSERT_AUTH_TOKEN, [
51
+ await DbUtilsExecSQL(span, SQL_QUERIES.INSERT_AUTH_TOKEN, [
52
52
  configIn.JWT_KEY,
53
53
  new Date().toISOString(),
54
54
  ]);