chore: 🤖 Update session recording API (#243)
* chore: 🤖 Update session recording API * chore: 🤖 Update usage of scope id for targets * chore: 🤖 Update scope id usage for user in session recordings
This commit is contained in:
1 parent
308a393202
commit
0dee7b5a02
11 files changed
+89
-51
No files matched your search
@@ -38,7 +38,10 @@ export default class SessionRecordingModel extends GeneratedSessionRecordingMode
|
||||
* @type {string}
|
||||
*/
|
||||
get targetScopeDisplayName() {
|
||||
return this.target?.scope?.name || this.target?.scope?.id;
|
||||
return (
|
||||
this.create_time_values?.target?.scope?.name ||
|
||||
this.create_time_values?.target?.scope?.id
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,6 +49,8 @@ export default class SessionRecordingModel extends GeneratedSessionRecordingMode
|
||||
* @type {string}
|
||||
*/
|
||||
get userDisplayName() {
|
||||
return this.user?.name || this.user?.id;
|
||||
return (
|
||||
this.create_time_values?.user?.name || this.create_time_values?.user?.id
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user