pub async fn act( owner_id: i32, id: i32, expected: i32, action: NoteAction, ) -> Result<Note, AppError>