File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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:
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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const boolFields = ['deleted']
99const keepZeroWeightFor = new Set ( [ 'SRV' , 'URI' ] )
1010const 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
9999function dbToObject ( rows ) {
100100 rows = JSON . parse ( JSON . stringify ( rows ) )
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { init } from './index.js'
55import User from '../lib/user/index.js'
66import 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
1111let server ,
1212 auth = { headers : { } }
You can’t perform that action at this time.
0 commit comments