Skip to content

Commit

Permalink
Remove notification batching & add specification
Browse files Browse the repository at this point in the history
Instead of /notification/batch -> /notification/send just do
/notification/send since we are moving from serverless

Also changes `GET /notifications/`` response type from `[{..notif1}]`
to `{ notifications: [{..notif1}] }` to be consistent
  • Loading branch information
Timothy-Gonzalez committed Oct 16, 2024
1 parent 27579bd commit 7671e9e
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 231 deletions.
1 change: 0 additions & 1 deletion src/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ const Config = {
/* Limits */
LEADERBOARD_QUERY_LIMIT: 25,
MAX_RESUME_SIZE_BYTES: 2 * 1024 * 1024,
NOTIFICATION_BATCH_SIZE: 50,

/* Misc */
SHOP_BYTES_GEN: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/database/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ShopItem } from "./shop-db";
import { UserAttendance, UserInfo } from "../services/user/user-schemas";
import { AnyParamConstructor, IModelOptions } from "@typegoose/typegoose/lib/types";
import { StaffShift } from "../services/staff/staff-schemas";
import { NotificationMappings, NotificationMessages } from "./notification-db";
import { NotificationMappings, NotificationMessages } from "../services/notification/notification-schemas";
import { PuzzleItem } from "./puzzle-db";

// Groups for collections
Expand Down
31 changes: 0 additions & 31 deletions src/database/notification-db.ts

This file was deleted.

46 changes: 0 additions & 46 deletions src/services/notification/notification-formats.ts

This file was deleted.

Loading

0 comments on commit 7671e9e

Please sign in to comment.