aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-01 20:49:31 -0400
committerbobzel <zzzman@gmail.com>2020-10-01 20:49:31 -0400
commitae10a9c7e6188236023f790c1ff6abb0e211311e (patch)
treeeb0c7ff26d0349fd183f205116fdf9316e6e3248 /src/client/util/CurrentUserUtils.ts
parent266590937d3fda5dd96729edaa7c9bfac42370d9 (diff)
from last
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index c00ad2334..add595cd1 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -1023,7 +1023,7 @@ export class CurrentUserUtils {
const { userDocumentId, sharingDocumentId } = JSON.parse(ids) as any;
if (userDocumentId !== "guest") {
return DocServer.GetRefField(userDocumentId).then(async field =>
- Doc.SetUserDoc(await this.updateUserDocument(field instanceof Doc ? field : new Doc(userDocumentId, true), sharingDocumentId)));
+ await this.updateUserDocument(Doc.SetUserDoc(field instanceof Doc ? field : new Doc(userDocumentId, true)), sharingDocumentId));
} else {
throw new Error("There should be a user id! Why does Dash think there isn't one?");
}