template适配框架对context注入的改动

This commit is contained in:
Xu Chang 2024-03-29 18:53:29 +08:00
parent 576d2fef28
commit 9b6358b0cf
4 changed files with 5 additions and 7 deletions

View File

@ -10,6 +10,5 @@ const dropIfExists = process.argv[2];
initialize(
pwd,
BackendRuntimeContext.FromSerializedString,
!!dropIfExists
).then(() => process.exit(0));

View File

@ -8,7 +8,6 @@ const pwd = process.cwd();
const connector = new SimpleConnector(
'',
makeException,
BackendRuntimeContext.FromSerializedString
makeException
);
startup(pwd, BackendRuntimeContext.FromSerializedString, connector);
startup(pwd, connector);

View File

@ -44,8 +44,8 @@ export default function initialize(type: AppType, hostname: string) {
type,
hostname,
storageSchema,
() => (store) => new FrontendRuntimeContext(store, wholeFeatures),
(str) => BackendRuntimeContext.FromSerializedString(str),
(store) => new FrontendRuntimeContext(store, wholeFeatures),
(store) => new BackendRuntimeContext(store),
aspectDict,
triggers,
checkers,

View File

@ -48,7 +48,7 @@ export default function initialize(
type,
hostname,
storageSchema,
() => (store) =>
(store) =>
new FrontendRuntimeContext(
store,
wholeFeatures