在修正selection时,如果以createAt作为默认排序列,需要加上相应的投影

This commit is contained in:
Xu Chang 2023-02-01 14:39:29 +08:00
parent 31ba6b5284
commit c290bb35ef
2 changed files with 6 additions and 0 deletions

View File

@ -230,6 +230,9 @@ function reinforceSelection(schema, entity, selection) {
}
]
});
Object.assign(data, {
$$createAt$$: 1,
});
}
}
exports.reinforceSelection = reinforceSelection;

View File

@ -228,5 +228,8 @@ export function reinforceSelection<ED extends EntityDict>(schema: StorageSchema<
}
]
});
Object.assign(data, {
$$createAt$$: 1,
});
}
}