Connect, collaborate, and grow with a community of TypeScript developers
chore: remove dead scripts (#1730)
bautistaaa693b4d62f1cb
diff --git a/packages/db/temp/export-tokens.ts b/packages/db/temp/export-tokens.tsdeleted file mode 100644index 679c6aa0..00000000--- a/packages/db/temp/export-tokens.ts+++ /dev/null@@ -1,24 +0,0 @@-// @ts-nocheck-// this file is temporary-import { createObjectCsvWriter } from 'csv-writer';-import path from 'node:path';-import { fileURLToPath } from 'node:url';-import { prisma } from '.';--const __filename = fileURLToPath(import.meta.url);-const __dirname = path.dirname(__filename);--const csvPath = path.join(__dirname, '../.tmp/dump.csv');--const csvWriter = createObjectCsvWriter({- path: csvPath,- header: [{ id: 'token', title: 'token' }],-});--const tokens = await prisma.betaTokens.findMany({- select: {- token: true,- },-});--await csvWriter.writeRecords(tokens);diff --git a/packages/db/temp/populate-tokens.ts b/packages/db/temp/populate-tokens.tsdeleted file mode 100644index 356465c9..00000000--- a/packages/db/temp/populate-tokens.ts+++ /dev/null@@ -1,25 +0,0 @@-import { prisma } from '../src';--const TOKEN_LIMIT = 3069;--function generateRandomStr() {- const chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';- let result = '';- for (let i = 0; i < 10; i++) {- result += chars[Math.floor(Math.random() * chars.length)];- }- return result;-}--async function populateTokens() {- await prisma.betaTokens.deleteMany();- await prisma.betaTokens.createMany({- data: Array.from(new Array(TOKEN_LIMIT).keys()).map(() => {- return {- token: generateRandomStr(),- };- }),- });-}--populateTokens();