mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Include the upstream when signing terms
This commit is contained in:
parent
3831f2f7bc
commit
e8551659fd
@ -67,6 +67,7 @@ export class ScalarStore {
|
||||
// First see if we have a token for the upstream so we can try it
|
||||
const existingTokens = await UserScalarToken.findAll({
|
||||
where: {isDimensionToken: false, userId: testUserId, upstreamId: upstream.id},
|
||||
include: [Upstream],
|
||||
});
|
||||
if (existingTokens && existingTokens.length) {
|
||||
// Test that the token works
|
||||
@ -120,6 +121,7 @@ export class ScalarStore {
|
||||
isDimensionToken: false,
|
||||
upstreamId: upstream.id,
|
||||
});
|
||||
scalarToken.upstream = upstream;
|
||||
|
||||
// Accept all terms of service for the user
|
||||
await ScalarStore.signAllTerms(scalarToken, scalarKind);
|
||||
|
Loading…
Reference in New Issue
Block a user