Update quickstart plugin skeleton
This commit is contained in:
4
.github/quickstart/plugin/index.mjs
vendored
4
.github/quickstart/plugin/index.mjs
vendored
@@ -1,5 +1,5 @@
|
||||
//Setup
|
||||
export default async function({login, q, imports, data, computed, rest, graphql, queries, account}, {enabled = false} = {}) {
|
||||
export default async function({login, q, imports, data, computed, rest, graphql, queries, account}, {enabled = false} = {}) {
|
||||
//Plugin execution
|
||||
try {
|
||||
//Check if plugin is enabled and requirements are met
|
||||
@@ -12,4 +12,4 @@
|
||||
catch (error) {
|
||||
throw {error:{message:"An error occured", instance:error}}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user