Dev and Test run fixed. New Datepicker. Tests fixed. Message bookmarking fixed.
This commit is contained in:
17
server/check_table.ts
Normal file
17
server/check_table.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import prisma from './src/lib/prisma';
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
console.log('Checking SavedMessage table...');
|
||||
const count = await prisma.savedMessage.count();
|
||||
console.log(`SavedMessage table exists, count: ${count}`);
|
||||
} catch (error: any) {
|
||||
console.error('Error accessing SavedMessage table:', error.message);
|
||||
} finally {
|
||||
await prisma.$disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
@@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"start": "node dist/index.js",
|
||||
"start:prod": "node dist/index.js",
|
||||
"start:dev": "cross-env APP_MODE=dev ts-node-dev -r dotenv/config --respawn --transpile-only src/index.ts",
|
||||
"start:dev": "cross-env APP_MODE=dev PORT=3200 ts-node-dev -r dotenv/config --respawn --transpile-only src/index.ts",
|
||||
"start:test": "cross-env APP_MODE=test PORT=3201 ts-node-dev -r dotenv/config --respawn --transpile-only src/index.ts",
|
||||
"dev": "npm run start:dev",
|
||||
"build": "tsc",
|
||||
"migrate:deploy": "npx prisma migrate deploy"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user