mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-26 07:57:10 +00:00
remove unneeded logs
This commit is contained in:
committed by
Eric Dubé
parent
2fe52cb972
commit
ba0f4e3f86
@@ -269,7 +269,6 @@ class SQLES extends BaseES {
|
||||
},
|
||||
async update_ (entity, old_entity) {
|
||||
const sql_data = await this.get_sql_data_(entity);
|
||||
console.log(sql_data);
|
||||
const id_value = await entity.get(this.om.primary_identifier);
|
||||
delete sql_data[this.om.primary_identifier];
|
||||
|
||||
|
||||
@@ -122,7 +122,6 @@ class EntityStoreService extends BaseService {
|
||||
if ( id && ! uid ) {
|
||||
const entity = await this.fetch_based_on_complex_id_(id);
|
||||
if ( ! entity ) {
|
||||
console.log("API Error ID ",id)
|
||||
throw APIError.create('entity_not_found', null, {
|
||||
identifier: id
|
||||
});
|
||||
|
||||
@@ -104,7 +104,6 @@ class WorkerService extends BaseService {
|
||||
const appOwner = await result[0].get("app_owner");
|
||||
if (appOwner) { // If the deployer is an app...
|
||||
const appID = await appOwner.get("uid");
|
||||
console.log("appID", appID)
|
||||
authToken = await svc_su.sudo(await data.node.get("owner"), async () => {
|
||||
return await svc_auth.get_user_app_token(appID);
|
||||
})
|
||||
@@ -211,12 +210,10 @@ class WorkerService extends BaseService {
|
||||
const cfData = await deleteWorker(userData, authorization, workerName);
|
||||
|
||||
const es_subdomain = this.services.get('es:subdomain');
|
||||
console.log("workers.puter." + calculateWorkerNameNew(userData.uuid, workerName))
|
||||
const result = await svc_su.sudo(async () => {
|
||||
const row = (await es_subdomain.select({ predicate: new Eq({ key: "subdomain", value: "workers.puter." + calculateWorkerNameNew(userData.uuid, workerName) }) }));
|
||||
return row;
|
||||
})
|
||||
console.log("search result: ", result)
|
||||
|
||||
await es_subdomain.delete(await result[0].get("uid"));
|
||||
return cfData;
|
||||
|
||||
Reference in New Issue
Block a user