mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
fix(search): key the in-flight search by actor and record
Two tabs searching two different records (one's own and a shared one) cancelled each other, because a new search aborted any earlier one by the same actor. The slot is now held per actor and record.
This commit is contained in:
1 parent
24f06884b3
commit
88aec7edb6
3 files changed
+39
-9
No files matched your search
@@ -90,7 +90,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
|
||||
});
|
||||
}
|
||||
|
||||
const slot = beginSearch(actor.id);
|
||||
const slot = beginSearch(actor.id, user.id);
|
||||
try {
|
||||
const [modules, domainVisible, timezone] = await Promise.all([
|
||||
resolveModuleMap(user.id),
|
||||
|
||||
Reference in new issue
Block a user