Skip to content

Commit 2dcd5ec

Browse files
feat: change adopted probes sql table
1 parent 72b9d4f commit 2dcd5ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: migrations/create-tables.js.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE TABLE IF NOT EXISTS adopted_probes (
1+
CREATE TABLE IF NOT EXISTS gp_adopted_probes (
22
id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
33
user_created CHAR(36),
44
date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,

Diff for: src/lib/adopted-probes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { normalizeFromPublicName } from './geoip/utils.js';
99

1010
const logger = scopedLogger('adopted-probes');
1111

12-
export const ADOPTED_PROBES_TABLE = 'adopted_probes';
12+
export const ADOPTED_PROBES_TABLE = 'gp_adopted_probes';
1313
export const NOTIFICATIONS_TABLE = 'directus_notifications';
1414

1515
export type AdoptedProbe = {

Diff for: test/tests/unit/adopted-probes.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('AdoptedProbes', () => {
9696
await adoptedProbes.syncDashboardData();
9797

9898
expect(sqlStub.callCount).to.equal(1);
99-
expect(sqlStub.args[0]).deep.equal([{ probes: 'adopted_probes' }]);
99+
expect(sqlStub.args[0]).deep.equal([{ probes: 'gp_adopted_probes' }]);
100100
expect(selectStub.callCount).to.equal(1);
101101
});
102102

0 commit comments

Comments
 (0)