mirror of
https://github.com/arthur-pbty/gestion-perso.git
synced 2026-06-03 23:36:35 +02:00
12 lines
258 B
JavaScript
12 lines
258 B
JavaScript
require('dotenv').config()
|
|
const run = require("./fonctions/run");
|
|
const initDB = require("./fonctions/initDB");
|
|
tokens = process.env.TOKENS.split(',')
|
|
|
|
initDB();
|
|
|
|
const runAsync = async () => {
|
|
Promise.all(tokens.map(token => run(token)));
|
|
};
|
|
|
|
runAsync(); |