swap requires to imports

This commit is contained in:
gprunet
2026-01-16 19:31:16 +01:00
parent f61597c903
commit 18b6a6b84f
10 changed files with 41 additions and 42 deletions
+4 -3
View File
@@ -1,5 +1,5 @@
require('dotenv').config();
const { Pool } = require('pg');
import 'dotenv/config';
import { Pool } from 'pg';
const pool = new Pool
({
@@ -105,7 +105,8 @@ async function ensureOauthClient(provider, client_id, client_secret, redirect_ur
}
}
module.exports = {
export
{
waitForDb,
createTables,
query,