1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Update server dependencies

This commit is contained in:
Chocobozzz 2021-02-03 09:33:05 +01:00
parent 29f148a613
commit ba5a8d89bb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
42 changed files with 1322 additions and 1553 deletions

View file

@ -10,14 +10,16 @@ program
.option('-u, --user [user]', 'User')
.parse(process.argv)
if (program['user'] === undefined) {
const options = program.opts()
if (options.user === undefined) {
console.error('All parameters are mandatory.')
process.exit(-1)
}
initDatabaseModels(true)
.then(() => {
return UserModel.loadByUsername(program['user'])
return UserModel.loadByUsername(options.user)
})
.then(user => {
if (!user) {
@ -28,7 +30,7 @@ initDatabaseModels(true)
const readline = require('readline')
const Writable = require('stream').Writable
const mutableStdout = new Writable({
write: function (chunk, encoding, callback) {
write: function (_chunk, _encoding, callback) {
callback()
}
})