Skip to content

Commit

Permalink
🔨 remove typeorm annotations from GdocAuthor
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Mar 16, 2024
1 parent 9e2a897 commit 43f3e8f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions db/model/Gdoc/GdocAuthor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Entity, Column, Raw } from "typeorm"
import {
OwidGdocErrorMessage,
OwidGdocAuthorInterface,
Expand All @@ -8,7 +7,6 @@ import {
OwidGdocErrorMessageType,
DbEnrichedLatestWork,
DEFAULT_GDOC_FEATURED_IMAGE,
OwidGdocType,
OwidGdocBaseInterface,
} from "@ourworldindata/utils"
import { GdocBase } from "./GdocBase.js"
Expand All @@ -18,9 +16,7 @@ import { getLatestWorkByAuthor } from "../Post.js"
import * as db from "../../../db/db.js"
import { loadPublishedGdocAuthors } from "./GdocFactory.js"

@Entity("posts_gdocs")
export class GdocAuthor extends GdocBase implements OwidGdocAuthorInterface {
@Column({ default: "{}", type: "json" })
content!: OwidGdocAuthorContent
latestWorkLinks?: DbEnrichedLatestWork[]

Expand Down

0 comments on commit 43f3e8f

Please sign in to comment.