* feat: allows forcing/skipping calendar cache serving Signed-off-by: Omar López <zomars@me.com> * Update features.repository.ts * Added to HNB * type fixes * Update packages/prisma/migrations/20241216000000_add_calendar_cache_serve/migration.sql Co-authored-by: Keith Williams <keithwillcode@gmail.com> * Update packages/prisma/zod-utils.ts Co-authored-by: Keith Williams <keithwillcode@gmail.com> * Update selectedCalendar.ts --------- Signed-off-by: Omar López <zomars@me.com> Co-authored-by: Keith Williams <keithwillcode@gmail.com>
14 lines
415 B
TypeScript
14 lines
415 B
TypeScript
import type { IFeaturesRepository } from "./features.repository.interface";
|
|
|
|
export class MockFeaturesRepository implements IFeaturesRepository {
|
|
async checkIfUserHasFeature(userId: number, slug: string) {
|
|
return slug === "mock-feature";
|
|
}
|
|
async checkIfTeamHasFeature(team: number, slug: string) {
|
|
return slug === "mock-feature";
|
|
}
|
|
async checkIfFeatureIsEnabledGlobally() {
|
|
return true;
|
|
}
|
|
}
|