Skip to content

Commit 39db8a9

Browse files
author
Roman Snapko
committed
Fix app connection pagination column name to include table prefix
1 parent 6e7ad7c commit 39db8a9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/server/api/src/app/app-connection/app-connection-service/app-connection-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export const appConnectionService = {
238238
},
239239
customPaginationColumn: {
240240
columnPath: 'updated',
241-
columnName: 'updated',
241+
columnName: 'app_connection.updated',
242242
},
243243
});
244244

packages/server/api/test/unit/app-connection/app-connection-service.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import {
6666
} from '@openops/shared';
6767
import { appConnectionService } from '../../../src/app/app-connection/app-connection-service/app-connection-service';
6868
import { restoreRedactedSecrets } from '../../../src/app/app-connection/app-connection-utils';
69+
import { AppConnectionEntity } from '../../../src/app/app-connection/app-connection.entity';
6970
import { buildPaginator } from '../../../src/app/helper/pagination/build-paginator';
7071

7172
describe('appConnectionService.update', () => {
@@ -203,7 +204,7 @@ describe('appConnectionService.list', () => {
203204
});
204205

205206
expect(buildPaginator).toHaveBeenCalledWith({
206-
entity: expect.any(Object),
207+
entity: AppConnectionEntity,
207208
query: {
208209
limit: 10,
209210
order: 'DESC',
@@ -212,7 +213,7 @@ describe('appConnectionService.list', () => {
212213
},
213214
customPaginationColumn: {
214215
columnPath: 'updated',
215-
columnName: 'updated',
216+
columnName: 'app_connection.updated',
216217
},
217218
});
218219

0 commit comments

Comments
 (0)