adjust import, move code back to original place

This commit is contained in:
martin-mfg
2025-11-02 12:09:41 +01:00
parent f7c5b620db
commit bcfa97ce72
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { getUserAccess, deleteUser } from "../src/common/database.js";
import axios from "axios";
import { logger } from "../src/index.js";
import { logger } from "../src/common/log.js";
export default async (req, res) => {
// We could optimize this method by doing both database operations in one statement, using "DELETE ... RETURNING ..."
+8 -8
View File
@@ -117,6 +117,14 @@ const iconWithLabel = (icon, label, testid, iconSize) => {
return flexLayout({ items: [iconSvg, text], gap: 20 }).join("");
};
// Script parameters.
const ERROR_CARD_LENGTH = 576.5;
const UPSTREAM_API_ERRORS = [
TRY_AGAIN_LATER,
SECONDARY_ERROR_MESSAGES.MAX_RETRY,
];
/**
* Renders error message on the card.
*
@@ -222,14 +230,6 @@ const measureText = (str, fontSize = 10) => {
);
};
// Script parameters.
const ERROR_CARD_LENGTH = 576.5;
const UPSTREAM_API_ERRORS = [
TRY_AGAIN_LATER,
SECONDARY_ERROR_MESSAGES.MAX_RETRY,
];
export {
ERROR_CARD_LENGTH,
renderError,