fix: SSR meta data for nested shared documents (#3646)

This commit is contained in:
Tom Moor
2022-06-08 01:38:34 -07:00
committed by GitHub
parent 80ad6cfec8
commit aed8d7a649
6 changed files with 307 additions and 275 deletions

View File

@@ -85,6 +85,10 @@ class Share extends IdModel {
return !!this.revokedAt;
}
get canonicalUrl() {
return `${this.team.url}/share/${this.id}`;
}
// associations
@BelongsTo(() => User, "revokedById")