Skip to content

Commit bb6914d

Browse files
ci: apply automated fixes
1 parent 9302a86 commit bb6914d

File tree

1 file changed

+6
-4
lines changed
  • packages/server-functions-plugin/src

1 file changed

+6
-4
lines changed

packages/server-functions-plugin/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export function createTanStackServerFnPlugin(opts: ServerFnPluginOpts): {
5959
},
6060
})
6161
const functionId = buildFunctionId({
62-
functionId: opts.functionId
63-
? opts.functionId
64-
: opts => opts.currentId,
62+
functionId: opts.functionId ? opts.functionId : (opts) => opts.currentId,
6563
directiveFnsById,
6664
})
6765

@@ -191,7 +189,11 @@ export function TanStackServerFnPluginEnv(
191189
// and SHA256 using the currentId as seed on production
192190
if (opts.functionId) return opts.functionId(functionIdOpts)
193191
else if (serverDevEnv) return functionIdOpts.currentId
194-
else return crypto.createHash('sha256').update(functionIdOpts.currentId).digest('hex')
192+
else
193+
return crypto
194+
.createHash('sha256')
195+
.update(functionIdOpts.currentId)
196+
.digest('hex')
195197
},
196198
directiveFnsById,
197199
})

0 commit comments

Comments
 (0)