Skip to content

Commit 93982ca

Browse files
committed
fixes
1 parent 721259f commit 93982ca

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/nameserver/store/base.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Zone domain class – pure attributes and business logic.
2+
* Nameserver store base class – pure attributes and business logic.
33
*
4-
* Has zero knowledge of how zones are persisted. All zone repository classes
4+
* Has zero knowledge of how nameservers are persisted. All nameserver repository classes
55
* must extend this class and implement the repo contract methods.
66
*
77
* Repo contract:
@@ -11,7 +11,7 @@
1111
* delete(args) → boolean
1212
* destroy(args) → boolean
1313
*/
14-
class ZoneBase {
14+
class NameserverBase {
1515
constructor(args = {}) {
1616
this.debug = args?.debug ?? false
1717
}
@@ -41,4 +41,4 @@ class ZoneBase {
4141
}
4242
}
4343

44-
export default ZoneBase
44+
export default NameserverBase

lib/zone_record/store/mysql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const boolFields = ['deleted']
99
const keepZeroWeightFor = new Set(['SRV', 'URI'])
1010
const keepZeroPriorityFor = new Set(['HTTPS', 'SVCB', 'URI'])
1111

12-
class ZoneRecordRepoMySQL extends ZoneRecordBase {
12+
class ZoneRecordMySQL extends ZoneRecordBase {
1313
constructor() {
1414
super()
1515
this.mysql = Mysql
@@ -94,7 +94,7 @@ class ZoneRecordRepoMySQL extends ZoneRecordBase {
9494
}
9595
}
9696

97-
export default ZoneRecordRepoMySQL
97+
export default ZoneRecordMySQL
9898

9999
function dbToObject(rows) {
100100
rows = JSON.parse(JSON.stringify(rows))

routes/user.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { init } from './index.js'
55
import User from '../lib/user/index.js'
66
import Group from '../lib/group/index.js'
77

8-
import groupCase from '../lib/group/test/group.json' with { type: 'json' }
9-
import userCase from '../lib/user/test/user.json' with { type: 'json' }
8+
import groupCase from './test/group.json' with { type: 'json' }
9+
import userCase from './test/user.json' with { type: 'json' }
1010

1111
let server,
1212
auth = { headers: {} }

0 commit comments

Comments
 (0)