Skip to content

Commit

Permalink
Remove outdated references to cid.
Browse files Browse the repository at this point in the history
  • Loading branch information
tealefristoe committed Aug 1, 2024
1 parent ad6442d commit 98a5c3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions v3/src/models/data/v2-model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe("V2Model", () => {
expect(isV2ModelSnapshot(m)).toBe(true)
m = {
id: 1,
cid: "cid",
name: "name",
title: "title"
} as V2ModelStorage
Expand All @@ -92,7 +91,6 @@ describe("V2Model", () => {
v2m = {
id: 1,
guid: 1,
cid: "cid",
name: "name",
title: "title"
}
Expand Down
3 changes: 1 addition & 2 deletions v3/src/models/data/v2-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ export interface IV2ModelSnapshot extends SnapshotIn<typeof V2Model> {}
export interface V2ModelStorage {
id: number
guid: number
cid?: string | null
name: string
title?: string | null
}

export function isV2ModelSnapshot(snap?: any): snap is IV2ModelSnapshot {
return snap?.guid != null || snap?.cid != null
return snap?.guid != null
}

export function v2NameTitleToV3Title(name: string, v2Title?: string | null) {
Expand Down

0 comments on commit 98a5c3d

Please sign in to comment.