File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/components/file/bucket Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export abstract class LocalBucket<
87
87
input : SignedOp < TCommandInput > ,
88
88
) {
89
89
const signed = JSON . stringify ( {
90
- operation : operation . constructor . name ,
90
+ operation : operation . name . replace ( / C o m m a n d $ / , '' ) ,
91
91
...input ,
92
92
signing : {
93
93
...input . signing ,
@@ -119,7 +119,10 @@ export abstract class LocalBucket<
119
119
const parsed = this . parseSignedUrl ( u ) as SignedOp < TCommandInput > & {
120
120
operation : string ;
121
121
} ;
122
- assert ( parsed . operation === operation . constructor . name ) ;
122
+ assert (
123
+ parsed . operation === operation . name ||
124
+ `${ parsed . operation } Command` === operation . name ,
125
+ ) ;
123
126
return parsed ;
124
127
} catch ( e ) {
125
128
throw new InvalidSignedUrlException ( e ) ;
You can’t perform that action at this time.
0 commit comments