Skip to content

Commit c132064

Browse files
committed
fixup! Refactored Account to improve types & reduce boilerplate
1 parent 232436d commit c132064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/account/account.entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,6 @@ type ExternalAccountDraftData = {
163163
type AccountDraftData = InternalAccountDraftData | ExternalAccountDraftData;
164164

165165
type Data<T> = {
166-
// biome-ignore lint/suspicious/noExplicitAny: These are not publicly usable instances of any
166+
// biome-ignore lint/suspicious/noExplicitAny: These anys are internal and don't leak to our code
167167
[K in keyof T as T[K] extends (...args: any[]) => any ? never : K]: T[K];
168168
};

src/post/post.repository.knex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class KnexPostRepository {
268268
'posts.thread_root',
269269
'posts.deleted_at',
270270
// Author account fields
271-
'accounts.is as author_id',
271+
'accounts.id as author_id',
272272
'accounts.username',
273273
'accounts.uuid as author_uuid',
274274
'accounts.name',

0 commit comments

Comments
 (0)