nomagick commited on
Commit
9399681
·
unverified ·
1 Parent(s): b878432

serp: use search expense id

Browse files
Files changed (1) hide show
  1. src/api/serp.ts +1 -1
src/api/serp.ts CHANGED
@@ -258,7 +258,7 @@ export class SerpHost extends RPCHost {
258
  let chargeAmount = 0;
259
  rpcReflect.finally(async () => {
260
  if (chargeAmount) {
261
- auth.reportUsage(chargeAmount, `reader-serp`).catch((err) => {
262
  this.logger.warn(`Unable to report usage for ${uid}`, { err: marshalErrorLike(err) });
263
  });
264
  const apiRoll = await apiRollPromise;
 
258
  let chargeAmount = 0;
259
  rpcReflect.finally(async () => {
260
  if (chargeAmount) {
261
+ auth.reportUsage(chargeAmount, `reader-search`).catch((err) => {
262
  this.logger.warn(`Unable to report usage for ${uid}`, { err: marshalErrorLike(err) });
263
  });
264
  const apiRoll = await apiRollPromise;