merge
This commit is contained in:
commit
371960a06f
|
|
@ -103,7 +103,7 @@ class Token extends oak_frontend_base_1.Feature {
|
|||
id: token,
|
||||
}
|
||||
}, 'token:getUserId');
|
||||
return result[0].userId;
|
||||
return result[0]?.userId;
|
||||
}
|
||||
}
|
||||
__decorate([
|
||||
|
|
|
|||
|
|
@ -114,6 +114,6 @@ export class Token<ED extends EntityDict, Cxt extends Context<ED>, AD extends Re
|
|||
id: token!,
|
||||
}
|
||||
}, 'token:getUserId');
|
||||
return result[0].userId;
|
||||
return result[0]?.userId;
|
||||
}
|
||||
}
|
||||
|
|
@ -19,8 +19,5 @@ declare global {
|
|||
ReturnType<typeof initialize>
|
||||
>;
|
||||
const generateNewId: (options?: { timestamp?: boolean }) => Promise<string>;
|
||||
const OakI18n: {
|
||||
i18nInstance: I18nWechatMpRuntimeBase | null;
|
||||
};
|
||||
}
|
||||
export {}
|
||||
Loading…
Reference in New Issue