mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +00:00
merge dev into feat/postgres-support
This commit is contained in:
@@ -93,6 +93,7 @@ export async function accommodationsOver(
|
||||
await createTestJourneyPhotosRepo(conn),
|
||||
await createTestJourneyEntryPhotosRepo(conn),
|
||||
await createTestPlacesRepo(conn),
|
||||
{ releaseValues: async () => 0 } as never, // StorageReleaseService
|
||||
),
|
||||
await createTestUnitOfWork(conn),
|
||||
await createTestDayAssignmentsRepo(conn),
|
||||
|
||||
@@ -33,10 +33,10 @@ export async function setAddonEnabled(orm: FactoryOrm, addonId: string, enabled:
|
||||
await upsertRow(orm, Addons, { id: addonId, name: addonId, type: 'global', enabled }, ['enabled']);
|
||||
}
|
||||
|
||||
/** Collab's chat, notes, polls and next-up panels are opt-out app settings, not addon rows. */
|
||||
/** Collab's chat, notes, polls, links and next-up panels are opt-out app settings, not addon rows. */
|
||||
export async function setCollabFeature(
|
||||
orm: FactoryOrm,
|
||||
feature: 'chat' | 'notes' | 'polls' | 'whatsnext',
|
||||
feature: 'chat' | 'notes' | 'polls' | 'links' | 'whatsnext',
|
||||
enabled: boolean,
|
||||
): Promise<void> {
|
||||
await setAppSetting(orm, `collab_${feature}_enabled`, enabled ? 'true' : 'false');
|
||||
|
||||
@@ -361,6 +361,7 @@ export async function createPluginRpcHostParts(
|
||||
await createTestJourneyPhotosRepo(db),
|
||||
await createTestJourneyEntryPhotosRepo(db),
|
||||
await createTestPlacesRepo(db),
|
||||
{ releaseValues: async () => 0 } as never, // StorageReleaseService
|
||||
);
|
||||
const atlas = new AtlasService(
|
||||
await createTestBucketListRepo(db),
|
||||
|
||||
@@ -182,7 +182,7 @@ export function setAddonEnabled(db: Database.Database, addonId: string, enabled:
|
||||
/** Collab's sub-feature flags are opt-out app_settings, not addon rows. */
|
||||
export function setCollabFeature(
|
||||
db: Database.Database,
|
||||
feature: 'chat' | 'notes' | 'polls' | 'whatsnext',
|
||||
feature: 'chat' | 'notes' | 'polls' | 'links' | 'whatsnext',
|
||||
enabled: boolean,
|
||||
): void {
|
||||
db.prepare('INSERT OR REPLACE INTO app_settings (key, value) VALUES (?, ?)').run(
|
||||
|
||||
Reference in New Issue
Block a user