serp: use search expense id

This commit is contained in:
Yanlong Wang 2025-04-03 10:55:57 +08:00
parent b878432bec
commit 93996819cc
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -258,7 +258,7 @@ export class SerpHost extends RPCHost {
let chargeAmount = 0;
rpcReflect.finally(async () => {
if (chargeAmount) {
auth.reportUsage(chargeAmount, `reader-serp`).catch((err) => {
auth.reportUsage(chargeAmount, `reader-search`).catch((err) => {
this.logger.warn(`Unable to report usage for ${uid}`, { err: marshalErrorLike(err) });
});
const apiRoll = await apiRollPromise;