Skip to content

Commit

Permalink
fix: tilmeld register and login
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Sep 1, 2021
1 parent 935be83 commit 99b12d2
Show file tree
Hide file tree
Showing 22 changed files with 614 additions and 457 deletions.
4 changes: 2 additions & 2 deletions packages/nymph/src/Nymph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export default class Nymph {
): Promise<ReturnType<T['factorySync']>[] | string[]> {
for (let callback of this.beforeGetEntitiesCallbacks) {
if (callback) {
callback(options, ...selectors);
callback(options, selectors);
}
}
return await this.driver.getEntities(options, ...selectors);
Expand Down Expand Up @@ -547,7 +547,7 @@ export default class Nymph {
options.limit = 1;
for (let callback of this.beforeGetEntityCallbacks) {
if (callback) {
callback(options, ...(selectors as Selector[]));
callback(options, selectors as Selector[]);
}
}
const entities = await this.driver.getEntities(
Expand Down
8 changes: 4 additions & 4 deletions packages/nymph/src/Nymph.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export type NymphEventType =
export type NymphConnectCallback = (result: Promise<boolean>) => void;
export type NymphDisconnectCallback = (result: Promise<boolean>) => void;
export type NymphBeforeGetEntityCallback = (
options?: Options,
...selectors: Selector[]
options: Options,
selectors: Selector[]
) => void;
export type NymphBeforeGetEntitiesCallback = (
options?: Options,
...selectors: Selector[]
options: Options,
selectors: Selector[]
) => void;
export type NymphBeforeSaveEntityCallback = (entity: EntityInterface) => void;
export type NymphAfterSaveEntityCallback = (result: Promise<boolean>) => void;
Expand Down
Loading

0 comments on commit 99b12d2

Please sign in to comment.