Skip to content

Commit

Permalink
chore(root): Release 2024-11-21 08:06 (#7098)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 21, 2024
2 parents cd8b93b + f074695 commit edcbdec
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
14 changes: 8 additions & 6 deletions apps/dashboard/src/components/primitives/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitiv

const TooltipContent = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Content>, TooltipContentProps>(
({ className, sideOffset = 4, variant, size, ...props }, ref) => (
<TooltipPrimitive.Content
ref={ref}
sideOffset={sideOffset}
className={cn(tooltipContentVariants({ variant, size }), className)}
{...props}
/>
<TooltipPortal>
<TooltipPrimitive.Content
ref={ref}
sideOffset={sideOffset}
className={cn(tooltipContentVariants({ variant, size }), className)}
{...props}
/>
</TooltipPortal>
)
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import mongoose, { Schema } from 'mongoose';
import { ExecutionDetailsSourceEnum, ExecutionDetailsStatusEnum } from '@novu/shared';
import mongoose, { Schema } from 'mongoose';

import { ExecutionDetailsDBModel } from './execution-details.entity';

import { schemaOptions } from '../schema-default.options';
import { getTTLOptions } from '../../shared';

const executionDetailsSchema = new Schema<ExecutionDetailsDBModel>(
{
Expand Down Expand Up @@ -111,6 +110,11 @@ executionDetailsSchema.index({
_environmentId: 1,
});

/*
* This index was created to push entries to Online Archive
*/
executionDetailsSchema.index({ createdAt: 1 });

export const ExecutionDetails =
(mongoose.models.ExecutionDetails as mongoose.Model<ExecutionDetailsDBModel>) ||
mongoose.model<ExecutionDetailsDBModel>('ExecutionDetails', executionDetailsSchema);
6 changes: 5 additions & 1 deletion libs/dal/src/repositories/job/job.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import mongoose, { Schema } from 'mongoose';

import { schemaOptions } from '../schema-default.options';
import { JobDBModel, JobStatusEnum } from './job.entity';
import { getTTLOptions } from '../../shared';

const jobSchema = new Schema<JobDBModel>(
{
Expand Down Expand Up @@ -397,4 +396,9 @@ jobSchema.index(
}
);

/*
* This index was created to push entries to Online Archive
*/
jobSchema.index({ createdAt: 1 });

export const Job = (mongoose.models.Job as mongoose.Model<JobDBModel>) || mongoose.model<JobDBModel>('Job', jobSchema);
8 changes: 6 additions & 2 deletions libs/dal/src/repositories/message/message.schema.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import mongoose, { Schema } from 'mongoose';
import { ActorTypeEnum } from '@novu/shared';
import mongoose, { Schema } from 'mongoose';

import { schemaOptions } from '../schema-default.options';
import { MessageDBModel } from './message.entity';
import { getTTLOptions } from '../../shared';

const mongooseDelete = require('mongoose-delete');

Expand Down Expand Up @@ -288,6 +287,11 @@ messageSchema.index({
createdAt: 1,
});

/*
* This index was created to push entries to Online Archive
*/
messageSchema.index({ createdAt: 1 });

export const Message =
(mongoose.models.Message as mongoose.Model<MessageDBModel>) ||
mongoose.model<MessageDBModel>('Message', messageSchema);
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import mongoose, { Schema } from 'mongoose';

import { schemaOptions } from '../schema-default.options';
import { NotificationDBModel } from './notification.entity';
import { getTTLOptions } from '../../shared';

const notificationSchema = new Schema<NotificationDBModel>(
{
Expand Down Expand Up @@ -155,6 +154,11 @@ notificationSchema.index({
createdAt: -1,
});

/*
* This index was created to push entries to Online Archive
*/
notificationSchema.index({ createdAt: 1 });

export const Notification =
(mongoose.models.Notification as mongoose.Model<NotificationDBModel>) ||
mongoose.model<NotificationDBModel>('Notification', notificationSchema);

0 comments on commit edcbdec

Please sign in to comment.