Set type for URL in Tweet entity

This commit is contained in:
IshaVenikar authored and Adw8 committed 2025-02-06 10:01:03 +05:30
1 parent b5c9cb7956
commit 970b7ae00e
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -10,7 +10,9 @@ export async function POST(req: NextRequest): Promise<NextResponse> {
const response = await fetch(url);
const data = await response.json();
const { handle, txSignature, memeUrl } = extractData(data.html);
if (!handle || !txSignature) {
return NextResponse.json(
{ error: 'Could not extract tweet data' },
+1 -1
View File
@@ -5,7 +5,7 @@ export class Tweet {
@PrimaryGeneratedColumn()
id!: number;
@Column({ unique: true, nullable: true })
@Column({ type: 'text', unique: true, nullable: true })
url!: string | null;
@Column({ unique: true })