mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
refactor: migrate shared-link repository to kysely (#15289)
* refactor: migrate shared-link repository to kysely * fix duplicate individual shared link return in getAll when there are more than 1 asset in the shared link * using correct order condition * using eb.table --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
430d0b86ee
commit
3d13da7f11
7 changed files with 435 additions and 404 deletions
server/src/services
|
@ -275,7 +275,6 @@ describe('AuthService', () => {
|
|||
|
||||
describe('validate - shared key', () => {
|
||||
it('should not accept a non-existent key', async () => {
|
||||
sharedLinkMock.getByKey.mockResolvedValue(null);
|
||||
await expect(
|
||||
sut.authenticate({
|
||||
headers: { 'x-immich-share-key': 'key' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue