mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(server): move bin content parser to doc reader (#10302)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user