Skip to content

Conversation

@PE39806
Copy link
Contributor

@PE39806 PE39806 commented Dec 15, 2025

No description provided.

@PE39806 PE39806 added bug Something isn't working javascript Pull requests that update Javascript code labels Dec 15, 2025
@PE39806 PE39806 marked this pull request as ready for review December 15, 2025 12:07
GB907762
GB907762 previously approved these changes Dec 16, 2025
export async function getModelByIdNoAuth(modelId: string, kind?: EntryKindKeys): Promise<ModelDoc> {
const model = await ModelModel.findOne({
id: modelId,
...(kind && { kind }),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is kind necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. As "ModelModel" is really EntryModel. I assume there is a condition in which two entries could have same id, but different kind to distinguish them? If not, and no two entries can have the same id, do we need kind for searching the "models"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working javascript Pull requests that update Javascript code ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants