1 files changed, 4 insertions, 5 deletions
diff --git a/src/util/entities/EmbedCache.ts b/src/util/entities/EmbedCache.ts
index a9ffd063..6a773805 100644
--- a/src/util/entities/EmbedCache.ts
+++ b/src/util/entities/EmbedCache.ts
@@ -27,12 +27,11 @@ export class EmbedCache extends BaseClass {
@Column()
url: string;
- @Column({ type: "simple-json" })
- embed: Embed;
+ @Column({ type: "simple-json", nullable: true })
+ embed?: Embed;
- // TODO: store all returned embed objects from a handler
- // @Column({ type: "simple-json" })
- // embeds: Embed[];
+ @Column({ type: "simple-json", nullable: true })
+ embeds?: Embed[];
@Column({ name: "created_at", type: "timestamp with time zone" })
createdAt: Date;
|