forked from mito-systems/sol-mem-gen
Update data source intialisation
This commit is contained in:
parent
0107137271
commit
8b80ee2cd6
@ -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)}`;
|
||||
};
|
||||
|
@ -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: [],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user