-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mixin): making the actor field configurable (#73)
* feat(mixin): feat(mixin): making the actor field configurable added a key to that can be bounded to key of user that can be set as actor GH-68 GH-68 * feat(mixin): docs(mixin): add docs about how to configure actor id key steps explaining how to pass the actor id via the repository constructor to change its value GH-68 GH-68 * feat(mixin): added delete all hard and delete by id hard in case current user is not available then can be passed through options GH-68 * feat(mixin): making the actor field configurable adding a separate function for actor to avoid repetition GH-68 * feat(mixin): making actor id configurable get actor from a private method GH-68
- Loading branch information
1 parent
3071b66
commit c6a2e4b
Showing
9 changed files
with
216 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import {BindingKey} from '@loopback/core'; | ||
import {ActorId} from './types'; | ||
|
||
export namespace AuditBindings { | ||
export const ActorIdKey = BindingKey.create<ActorId>(`sf.audit.actorid`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.