Spaces:
Build error
Build error
serp: use search expense id
Browse files- 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-
|
| 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;
|