Skip to content

Commit

Permalink
[backend] add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SouadHadjiat committed Nov 14, 2024
1 parent 7c24e97 commit 385b8eb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export interface HistoryData extends BasicStoreEntity {
context_data: HistoryContext;
}

/**
* Function to resolve granted_refs when granted_refs_ids are not present (have been added on nov 2024)
* This is needed to be able to process older events, and will be removed after a year
* @param context
* @param events
*/
const resolveGrantedRefsIds = async (context: AuthContext, events: Array<SseEvent<StreamDataEvent>>) => {
const grantedRefsToResolve: StixId[] = [];
events.forEach((event) => {
Expand Down

0 comments on commit 385b8eb

Please sign in to comment.