mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-06 01:31:49 +01:00
10 lines
352 B
TypeScript
10 lines
352 B
TypeScript
|
|
import aclEntrySchema from '~/schema/aclEntry';
|
||
|
|
import type * as t from '~/types';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates or returns the AclEntry model using the provided mongoose instance and schema
|
||
|
|
*/
|
||
|
|
export function createAclEntryModel(mongoose: typeof import('mongoose')) {
|
||
|
|
return mongoose.models.AclEntry || mongoose.model<t.IAclEntry>('AclEntry', aclEntrySchema);
|
||
|
|
}
|