mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
fix(ci): repair Journey route registration and shared client behavior
Register the public view route, align generated entities and test fixtures, and share the scoped reads and access switches. Keep gallery and notification writes in order, and submit the email subscription from the dialog footer.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Run one operation at a time, in input order. Used for writes sharing a
|
||||
* transaction and external services that should not receive a burst.
|
||||
*/
|
||||
export function forEachInOrder<T>(
|
||||
values: readonly T[],
|
||||
visit: (value: T, index: number) => Promise<void>,
|
||||
): Promise<void> {
|
||||
return values.reduce((pending, value, index) => pending.then(() => visit(value, index)), Promise.resolve());
|
||||
}
|
||||
Reference in New Issue
Block a user