MCPcopy
hub / github.com/automatisch/automatisch / get

Method get

packages/backend/src/models/config.js:63–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 static async get() {
64 const existingConfig = await this.query().limit(1).first();
65
66 if (!existingConfig) {
67 return await this.query().insertAndFetch({});
68 }
69
70 return existingConfig;
71 }
72
73 static async update(config) {
74 const configEntry = await this.get();

Callers 15

updateMethod · 0.95
getConfigFunction · 0.80
index.test.jsFile · 0.80
get-apps.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected