style: clean up code formatting and remove trailing whitespace
refactor: reorganize imports and fix type imports
This commit is contained in:
1 parent
d3704602fd
commit
47c04de6fe
232 files changed
+7140
-4798
No files matched your search
@@ -1,14 +1,14 @@
|
||||
/**
|
||||
* Script para popular a tabela items unificada a partir do SQLite
|
||||
*
|
||||
*
|
||||
* Este script:
|
||||
* 1. Lê todos os itens de todas as tabelas do SQLite
|
||||
* 2. Insere na tabela items do PostgreSQL com IDs únicos
|
||||
* 3. Mapeia os dados para o formato unificado
|
||||
*/
|
||||
|
||||
import { resolve } from "node:path";
|
||||
import { config } from "dotenv";
|
||||
import { resolve } from "path";
|
||||
import { importItemsFromSQLite } from "@/lib/items/import-from-sqlite";
|
||||
import { secureLogger } from "@/lib/secure-logger";
|
||||
|
||||
@@ -16,7 +16,9 @@ async function populateItemsTable() {
|
||||
config({ path: resolve(process.cwd(), ".env.local") });
|
||||
config({ path: resolve(process.cwd(), ".env") });
|
||||
|
||||
secureLogger.info("Iniciando importação manual de itens (script standalone).");
|
||||
secureLogger.info(
|
||||
"Iniciando importação manual de itens (script standalone).",
|
||||
);
|
||||
const stats = await importItemsFromSQLite();
|
||||
secureLogger.info("Importação manual finalizada.", stats);
|
||||
}
|
||||
@@ -25,4 +27,3 @@ populateItemsTable().catch((error) => {
|
||||
secureLogger.error("Erro ao executar importação manual de itens", error);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user