Skip to content

Commit 3c1a4cd

Browse files
committed
dev: specify 'es:app' in puter.js apps module
The EntityStorage/OM mechanism for data access is being replaced. Specifying 'es:app' in puter.js calls will allow the ES/OM mechanism and its replacement to be tested together to check for regressions. When the replacement is done, we can change 'es:app' to the new service name.
1 parent 7786dee commit 3c1a4cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/puter-js/src/modules/Apps.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Apps {
7979

8080
options.predicate = ['user-can-edit'];
8181

82-
return this.#addUserIterationToApps(await utils.make_driver_method(['uid'], 'puter-apps', undefined, 'select').call(this, options));
82+
return this.#addUserIterationToApps(await utils.make_driver_method(['uid'], 'puter-apps', 'es:app', 'select').call(this, options));
8383
};
8484

8585
create = async (...args) => {
@@ -143,7 +143,7 @@ class Apps {
143143
}
144144

145145
// Call the original chat.complete method
146-
return this.#addUserIterationToApp(await utils.make_driver_method(['object'], 'puter-apps', undefined, 'create').call(this, options));
146+
return this.#addUserIterationToApp(await utils.make_driver_method(['object'], 'puter-apps', 'es:app', 'create').call(this, options));
147147
};
148148

149149
update = async (...args) => {
@@ -169,7 +169,7 @@ class Apps {
169169
}
170170

171171
// Call the original chat.complete method
172-
return this.#addUserIterationToApp(await utils.make_driver_method(['object'], 'puter-apps', undefined, 'update').call(this, options));
172+
return this.#addUserIterationToApp(await utils.make_driver_method(['object'], 'puter-apps', 'es:app', 'update').call(this, options));
173173
};
174174

175175
get = async (...args) => {
@@ -190,7 +190,7 @@ class Apps {
190190
if ( typeof args[0] === 'object' && args[0] !== null ) {
191191
options.params = args[0];
192192
}
193-
return this.#addUserIterationToApp(await utils.make_driver_method(['uid'], 'puter-apps', undefined, 'read').call(this, options));
193+
return this.#addUserIterationToApp(await utils.make_driver_method(['uid'], 'puter-apps', 'es:app', 'read').call(this, options));
194194
};
195195

196196
delete = async (...args) => {
@@ -200,7 +200,7 @@ class Apps {
200200
if ( Array.isArray(args) && typeof args[0] === 'string' ) {
201201
options = { id: { name: args[0] } };
202202
}
203-
return utils.make_driver_method(['uid'], 'puter-apps', undefined, 'delete').call(this, options);
203+
return utils.make_driver_method(['uid'], 'puter-apps', 'es:app', 'delete').call(this, options);
204204
};
205205

206206
getDeveloperProfile = function (...args) {

0 commit comments

Comments
 (0)