mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
fix get event by id
This commit is contained in:
parent
56c0ccc16c
commit
05d46e8851
@ -43,7 +43,7 @@ const useCachedFetch = (url, storageKey, dataProcessor = (data) => data) => {
|
||||
} else {
|
||||
fetchData();
|
||||
}
|
||||
}, [url, storageKey, dataProcessor]);
|
||||
}, [url, storageKey]);
|
||||
|
||||
return data;
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ class EventDB {
|
||||
}
|
||||
|
||||
get(id: any): Event | undefined {
|
||||
const event = this.eventsCollection.by('id', id);
|
||||
const event = this.eventsCollection.by('id', ID(id));
|
||||
if (event) {
|
||||
return this.unpack(event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user