Skip to content

Commit

Permalink
move model files to CE
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Oct 18, 2024
1 parent 94a1119 commit 607996c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { registerModel } from '@rocket.chat/models';

import { db } from '../../../server/database/utils';
import { db } from '../database/utils';
import { WorkspaceCredentialsRaw } from './raw/WorkspaceCredentials';

registerModel('IWorkspaceCredentialsModel', new WorkspaceCredentialsRaw(db));
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IWorkspaceCredentials } from '@rocket.chat/core-typings';
import type { IWorkspaceCredentialsModel } from '@rocket.chat/model-typings';
import type { Db, DeleteResult, Filter, IndexDescription, UpdateResult } from 'mongodb';

import { BaseRaw } from '../../../../server/models/raw/BaseRaw';
import { BaseRaw } from './BaseRaw';

export class WorkspaceCredentialsRaw extends BaseRaw<IWorkspaceCredentials> implements IWorkspaceCredentialsModel {
constructor(db: Db) {
Expand Down

0 comments on commit 607996c

Please sign in to comment.