mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 18:46:50 +07:00
database sync
This commit is contained in:
parent
b5052b73dc
commit
d3c6ec4de9
4 changed files with 73 additions and 4 deletions
10
dbgen.js
Normal file
10
dbgen.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
console.log(
|
||||
JSON.stringify(
|
||||
require('fs').readdirSync('./domains').map(f =>
|
||||
[
|
||||
f.split('.').slice(0, -1).join('.'), // subdomain
|
||||
require(`./domains/${f}`).owner.username // owner
|
||||
]
|
||||
)
|
||||
)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue