File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,19 @@ const api = module.exports = {
45
45
46
46
atomic ( operation ) {
47
47
return function atomic$operation ( ) {
48
- return Promise . try ( ( ) => {
49
- const args = [ ] . slice . call ( arguments )
50
- return api . session . atomic ( operation . bind ( this ) , args )
51
- } )
48
+ const args = [ ] . slice . call ( arguments )
49
+ return ( async ( ) => {
50
+ return await api . session . atomic ( operation . bind ( this ) , args )
51
+ } ) ( )
52
52
}
53
53
} ,
54
54
55
55
transaction ( operation ) {
56
56
return function transaction$operation ( ) {
57
- return Promise . try ( ( ) => {
58
- const args = [ ] . slice . call ( arguments )
59
- return api . session . transaction ( operation . bind ( this ) , args )
60
- } )
57
+ const args = [ ] . slice . call ( arguments )
58
+ return ( async ( ) => {
59
+ return await api . session . transaction ( operation . bind ( this ) , args )
60
+ } ) ( )
61
61
}
62
62
} ,
63
63
You can’t perform that action at this time.
0 commit comments