diff options
Diffstat (limited to 'server/tests/api/activitypub/security.ts')
-rw-r--r-- | server/tests/api/activitypub/security.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index c32940070..ab0eb256e 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts | |||
@@ -24,8 +24,8 @@ function setKeysOfServer (onServer: ServerInfo, ofServer: ServerInfo, publicKey: | |||
24 | const url = 'http://localhost:' + ofServer.port + '/accounts/peertube' | 24 | const url = 'http://localhost:' + ofServer.port + '/accounts/peertube' |
25 | 25 | ||
26 | return Promise.all([ | 26 | return Promise.all([ |
27 | onServer.sqlCommand.setActorField(url, 'publicKey', publicKey), | 27 | onServer.sql.setActorField(url, 'publicKey', publicKey), |
28 | onServer.sqlCommand.setActorField(url, 'privateKey', privateKey) | 28 | onServer.sql.setActorField(url, 'privateKey', privateKey) |
29 | ]) | 29 | ]) |
30 | } | 30 | } |
31 | 31 | ||
@@ -33,8 +33,8 @@ function setUpdatedAtOfServer (onServer: ServerInfo, ofServer: ServerInfo, updat | |||
33 | const url = 'http://localhost:' + ofServer.port + '/accounts/peertube' | 33 | const url = 'http://localhost:' + ofServer.port + '/accounts/peertube' |
34 | 34 | ||
35 | return Promise.all([ | 35 | return Promise.all([ |
36 | onServer.sqlCommand.setActorField(url, 'createdAt', updatedAt), | 36 | onServer.sql.setActorField(url, 'createdAt', updatedAt), |
37 | onServer.sqlCommand.setActorField(url, 'updatedAt', updatedAt) | 37 | onServer.sql.setActorField(url, 'updatedAt', updatedAt) |
38 | ]) | 38 | ]) |
39 | } | 39 | } |
40 | 40 | ||