Update data source intialisation

This commit is contained in:
Adw8 2025-02-05 20:53:28 +05:30
parent 0107137271
commit 8b80ee2cd6
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ const AIServiceCard: React.FC<AIServiceCardProps> = ({
const cid = imageUrl.split("/image/")[1];
const memeUrl = `${baseUrl}memes/${cid}`;
const tweetText = `Check out this meme that I generated! \n TX Hash: '${transactionSignature}' \n @${process.env.ACCOUNT_HANDLE} \n`;
const tweetText = `Check out this meme that I generated! \n TX Hash: '${transactionSignature}' \n @${process.env.NEXT_PUBLIC_ACCOUNT_HANDLE} \n`;
return `https://twitter.com/intent/tweet?text=${encodeURIComponent(tweetText)}&url=${encodeURIComponent(memeUrl)}`;
};

View File

@ -1,14 +1,14 @@
import { DataSource } from 'typeorm';
import { Payment } from './entity/Payment';
import { Tweet } from './entity/Tweet';
export const AppDataSource = new DataSource({
type: 'sqlite',
database: './database.sqlite',
synchronize: true,
logging: false,
entities: [Payment, Tweet],
// entities: [__dirname + "./entity/*{.js,.ts}"],
entities: [Payment],
migrations: [],
subscribers: [],
});