refactor(server): move bin content parser to doc reader (#10302)

This commit is contained in:
fengmk2
2025-02-20 07:19:48 +00:00
parent 9f4311f654
commit b4097aef8e
18 changed files with 477 additions and 234 deletions

View File

@@ -226,7 +226,7 @@ test('should generate request id', async t => {
await executor.run('nightly.__test__requestId', {});
t.true(spy.returnValues.some(v => v.includes(':job/')));
t.true(spy.returnValues.some(v => v.includes(':job:')));
spy.restore();
});

View File

@@ -94,7 +94,7 @@ export function parseCookies(
export type RequestType = GqlContextType | 'event' | 'job';
export function genRequestId(type: RequestType) {
return `${AFFiNE.flavor.type}:${type}/${randomUUID()}`;
return `${AFFiNE.flavor.type}:${type}:${randomUUID()}`;
}
export function getOrGenRequestId(type: RequestType) {