<commit_before>var callback = function(state, ev) {
  linkTo('digestInbox-' + ev.data.digestId, ev);
};

fromStream('inboxes').when({
  'InboxAdded': function(state, ev) {
    callback(state, ev);
  }
});<commit_msg>S-51679 Used fromCategory instead of fromStream for digestInbox projection<commit_after>var callback = function(state, ev) {
  linkTo('digestInbox-' + ev.data.digestId, ev);
};

fromCategory('inboxes').when({
  'InboxAdded': function(state, ev) {
    callback(state, ev);
  }
});
{'fraction_non_alphanumeric': 0.1717171717171717, 'fraction_numerical': 0.010101010101010102, 'mean_word_length': 5.358974358974359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4650175', 'n_tokens_mistral': 177, 'n_tokens_neox': 167, 'n_words': 34}