We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdd2f5f commit 2222a99Copy full SHA for 2222a99
packages/fmodata/src/client/filemaker-odata.ts
@@ -318,14 +318,9 @@ export class FMServerConnection implements ExecutionContext {
318
* @returns Promise resolving to an array of database names
319
*/
320
async listDatabaseNames(): Promise<string[]> {
321
- if ("apiKey" in this.auth) {
322
- this.logger.error(
323
- "listDatabaseNames not supported with API key authentication. OttoFMS requires that the API only be used with the database for which it was created",
324
- );
325
- }
326
const result = await this._makeRequest<{
327
value?: Array<{ name: string }>;
328
- }>("/");
+ }>("/$metadata", { headers: { Accept: "application/json" } });
329
if (result.error) {
330
throw result.error;
331
}
0 commit comments