File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/server-functions-plugin/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments