Skip to content

Commit 64ebece

Browse files
committed
chore: clean up
1 parent b52d745 commit 64ebece

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

core/lib/server/pub-op.db.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { tr } from "date-fns/locale";
2-
import { beforeAll, beforeEach, describe, expect, expectTypeOf, it, vitest } from "vitest";
1+
import { beforeAll, describe, expect, it } from "vitest";
32

4-
import type { PubsId, PubTypes, Stages } from "db/public";
3+
import type { PubsId } from "db/public";
54
import { CoreSchemaType, MemberRole } from "db/public";
65

76
import type { CommunitySeedOutput } from "~/prisma/seed/createSeed";
8-
import type { seedCommunity } from "~/prisma/seed/seedCommunity";
97
import { mockServerCode } from "~/lib/__tests__/utils";
108
import { createLastModifiedBy } from "../lastModifiedBy";
119
import { PubOp } from "./pub-op";
@@ -1052,9 +1050,9 @@ describe("relation management", () => {
10521050
// | / \
10531051
// v v v
10541052
// G --> E D
1055-
// / \
1056-
// v v
1057-
// F H
1053+
// | \
1054+
// v v
1055+
// F H
10581056
// / \
10591057
// v v
10601058
// K --> L

core/lib/server/pub-op.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
import { randomUUID } from "crypto";
2-
31
import type { Transaction } from "kysely";
42

53
import { sql } from "kysely";
64

75
import type { JsonValue, ProcessedPub } from "contracts";
86
import type { Database } from "db/Database";
9-
import type {
10-
CommunitiesId,
11-
PubFieldsId,
12-
PubsId,
13-
PubTypesId,
14-
PubValuesId,
15-
StagesId,
16-
} from "db/public";
7+
import type { CommunitiesId, PubFieldsId, PubsId, PubTypesId, StagesId } from "db/public";
178
import type { LastModifiedBy } from "db/types";
189
import { assert, expect } from "utils";
1910
import { isUuid } from "utils/uuid";

0 commit comments

Comments
 (0)