Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 31b6ec7

Browse files
feat: operator $params to define an array of params and their data/values.
1 parent 6bde772 commit 31b6ec7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/server.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ class CoCreateLazyLoader {
171171
if (typeof method !== 'function')
172172
throw new Error(`Method ${data.method} is not a function.`);
173173

174-
data.postmark = await method.apply(instance, [data[name]]);
174+
let params = data.$params || [data[name]]
175+
data.postmark = await method.apply(instance, params);
175176
return data
176177
} catch (error) {
177178
data.error = error.message

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /