mirror of
https://github.com/standardnotes/server
synced 2026-08-28 02:57:18 -04:00
* feat(syncing-server): refactor syncing to decouple getting and saving items * fix(syncing-server): item hash http representation mapping * fix(syncing-server): remove redundant specs for inversify express controller
14 lines
477 B
TypeScript
14 lines
477 B
TypeScript
import { Entity, Result, UniqueEntityId } from '@standardnotes/domain-core'
|
|
|
|
import { SharedVaultUserProps } from './SharedVaultUserProps'
|
|
|
|
export class SharedVaultUser extends Entity<SharedVaultUserProps> {
|
|
private constructor(props: SharedVaultUserProps, id?: UniqueEntityId) {
|
|
super(props, id)
|
|
}
|
|
|
|
static create(props: SharedVaultUserProps, id?: UniqueEntityId): Result<SharedVaultUser> {
|
|
return Result.ok<SharedVaultUser>(new SharedVaultUser(props, id))
|
|
}
|
|
}
|