diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis.sh | 4 | ||||
-rwxr-xr-x | scripts/update-host.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh index e0a59806a..f24aac885 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -5,9 +5,9 @@ if [ $# -eq 0 ]; then | |||
5 | exit -1 | 5 | exit -1 |
6 | fi | 6 | fi |
7 | 7 | ||
8 | if [ "$1" = "client" ]; then | 8 | if [ "$1" = "misc" ]; then |
9 | npm run build | 9 | npm run build |
10 | mocha --exit --require ts-node/register --bail server/tests/client.ts | 10 | mocha --exit --require ts-node/register --bail server/tests/client.ts server/tests/activitypub.ts |
11 | elif [ "$1" = "api" ]; then | 11 | elif [ "$1" = "api" ]; then |
12 | npm run build:server | 12 | npm run build:server |
13 | mocha --exit --require ts-node/register --bail server/tests/api/index.ts | 13 | mocha --exit --require ts-node/register --bail server/tests/api/index.ts |
diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 4410e1ff7..759443623 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts | |||
@@ -6,7 +6,7 @@ db.init(true) | |||
6 | return getServerAccount() | 6 | return getServerAccount() |
7 | }) | 7 | }) |
8 | .then(serverAccount => { | 8 | .then(serverAccount => { |
9 | return db.AccountFollow.listAcceptedFollowingUrlsForApi([ serverAccount.id ]) | 9 | return db.AccountFollow.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined) |
10 | }) | 10 | }) |
11 | .then(res => { | 11 | .then(res => { |
12 | return res.total > 0 | 12 | return res.total > 0 |