Update to AE API v3 for the hosted file hash check.

This commit is contained in:
Scott Idem
2026-03-25 13:17:25 -04:00
parent 362136e677
commit fd244720a7

View File

@@ -1,7 +1,7 @@
import type { key_val } from '$lib/stores/ae_stores';
import { api } from '$lib/api/api';
// Updated 2024-10-02
// Updated 2026-03-25
export async function check_hosted_file_obj_w_hash({
api_cfg,
hosted_file_hash,
@@ -19,7 +19,7 @@ export async function check_hosted_file_obj_w_hash({
}) {
console.log('*** stores_event_api.js: check_hosted_file_obj_w_hash() ***');
const endpoint = `/hosted_file/hash/${hosted_file_hash}`;
const endpoint = `/v3/action/hosted_file/hash/${hosted_file_hash}`;
if (check_for_local) {
params['check_for_local'] = true;
}