fix: oak-ignore
This commit is contained in:
parent
79a98e2d8f
commit
7862282214
|
|
@ -11,6 +11,7 @@ const checkers = [
|
|||
assert(!(data instanceof Array));
|
||||
checkAttributesNotNull('parasite', data, ['expiresAt', 'tokenLifeLength']);
|
||||
if (data.userId) {
|
||||
// @oak-ignore 这里先不await,下面再具体检查返回类型
|
||||
const users2 = context.select('user', {
|
||||
data: {
|
||||
id: 1,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ const checkers = [
|
|||
(0, assert_1.assert)(!(data instanceof Array));
|
||||
(0, validator_1.checkAttributesNotNull)('parasite', data, ['expiresAt', 'tokenLifeLength']);
|
||||
if (data.userId) {
|
||||
// @oak-ignore 这里先不await,下面再具体检查返回类型
|
||||
const users2 = context.select('user', {
|
||||
data: {
|
||||
id: 1,
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ const checkers: Checker<EntityDict, 'parasite', RuntimeCxt<EntityDict>>[] = [
|
|||
assert(!(data instanceof Array));
|
||||
checkAttributesNotNull('parasite', data, ['expiresAt', 'tokenLifeLength']);
|
||||
if (data.userId) {
|
||||
// @oak-ignore 这里先不await,下面再具体检查返回类型
|
||||
const users2 = context.select(
|
||||
'user',
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue