Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate audit repository to kysely #15269

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

danieldietzler
Copy link
Member

No description provided.

@@ -20,7 +20,7 @@ export class VersionHistoryRepository implements IVersionHistoryRepository {
return this.db.selectFrom('version_history').selectAll().orderBy('createdAt', 'desc').executeTakeFirst();
}

@GenerateSql({ params: [DummyValue.STRING] })
@GenerateSql({ params: [{ version: DummyValue.STRING }] })
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed this was broken when generating SQL 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol that explains why it was missing. Why doesn't it error on that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some queries throw an error. like when you try to insert a fake uuid into the album_assets intersection table. when you run make sql it logs these errors, and there was one for this query.

@jrasm91 jrasm91 force-pushed the refactor/kysely-audit branch from 2dddd7a to e401d72 Compare January 14, 2025 01:52
@jrasm91 jrasm91 merged commit 28b08ed into main Jan 14, 2025
36 checks passed
@jrasm91 jrasm91 deleted the refactor/kysely-audit branch January 14, 2025 02:23
arctic-foxtato pushed a commit to arctic-foxtato/immich that referenced this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants