Skip to content

Commit 8a884d9

Browse files
danbimclaude
andcommitted
chore: lint and format talent pool files
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8bdb470 commit 8a884d9

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/db/schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ export const talentPoolStatusEnum = pgEnum('talent_pool_status', [
147147
'submitted',
148148
])
149149

150-
export type TalentPoolStatus =
151-
(typeof talentPoolStatusEnum.enumValues)[number]
150+
export type TalentPoolStatus = (typeof talentPoolStatusEnum.enumValues)[number]
152151

153152
export const talentPools = pgTable('talent_pools', {
154153
id: uuid('id').primaryKey().defaultRandom(),

app/repositories/talent-pool.repository.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { eq, sql } from 'drizzle-orm'
22
import type { PostgresJsDatabase } from 'drizzle-orm/postgres-js'
33
import type * as schema from '~/db/schema'
4-
import {
5-
type NewTalentPool,
6-
type TalentPool,
7-
talentPools,
8-
} from '~/db/schema'
4+
import { type NewTalentPool, type TalentPool, talentPools } from '~/db/schema'
95

106
export class TalentPoolRepository {
117
constructor(private db: PostgresJsDatabase<typeof schema>) {}
@@ -29,10 +25,7 @@ export class TalentPoolRepository {
2925
}
3026

3127
async create(data: NewTalentPool): Promise<TalentPool> {
32-
const results = await this.db
33-
.insert(talentPools)
34-
.values(data)
35-
.returning()
28+
const results = await this.db.insert(talentPools).values(data).returning()
3629
return results[0]
3730
}
3831

0 commit comments

Comments
 (0)