view data fixes
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* Record page view input view model
|
||||
* Represents input data for recording a page view
|
||||
*
|
||||
* Note: No matching generated DTO available yet
|
||||
*/
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import type { RecordPageViewInputViewData } from "../view-data/RecordPageViewInputViewData";
|
||||
|
||||
export class RecordPageViewInputViewModel extends ViewModel {
|
||||
path: string;
|
||||
userId?: string;
|
||||
|
||||
constructor(data: { path: string; userId?: string }) {
|
||||
constructor(data: RecordPageViewInputViewData) {
|
||||
super();
|
||||
this.path = data.path;
|
||||
this.userId = data.userId;
|
||||
}
|
||||
@@ -24,4 +24,4 @@ export class RecordPageViewInputViewModel extends ViewModel {
|
||||
get hasUserContext(): boolean {
|
||||
return this.userId !== undefined && this.userId !== '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user