fix server-side event

This commit is contained in:
Nikita Galaiko 2023-02-22 17:35:07 +01:00
parent d3f9cc8828
commit 22f65ec2a1
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D

View File

@ -21,10 +21,10 @@ impl Event {
deltas: &Vec<deltas::Delta>,
relative_file_path: &std::path::Path,
) -> Self {
let event_name = format!("project://{}/deltas/{}", project.id, session.id);
let event_name = format!("project://{}/sessions/{}/deltas", project.id, session.id);
let payload = serde_json::json!({
"deltas": deltas,
"relative_file_path": relative_file_path,
"filePath": relative_file_path,
});
Event {
name: event_name,