Skip to content

Commit 940f43f

Browse files
committed
fix: spread plugin options to GoogleDocument
1 parent 817bcb4 commit 940f43f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/google-docs.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ async function fetchDocument(id) {
2323
return res.data
2424
}
2525

26-
/** @param {import('..').Options} pluginOptions */
27-
async function fetchDocuments(pluginOptions) {
28-
const documentsProperties = await fetchFiles(pluginOptions)
26+
/** @param {import('..').Options} options */
27+
async function fetchDocuments(options) {
28+
const documentsProperties = await fetchFiles(options)
2929
const links = documentsProperties.reduce(
3030
(acc, properties) => ({...acc, [properties.id]: properties.slug}),
3131
{}
@@ -37,7 +37,7 @@ async function fetchDocuments(pluginOptions) {
3737
const googleDocument = new GoogleDocument({
3838
document,
3939
properties,
40-
pluginOptions,
40+
options,
4141
links,
4242
})
4343

0 commit comments

Comments
 (0)