mirror of
https://github.com/whekin/household-bot.git
synced 2026-04-01 02:44:02 +00:00
feat(miniapp): add household general settings
This commit is contained in:
@@ -25,7 +25,14 @@ function repository(): HouseholdConfigurationRepository {
|
||||
}
|
||||
}),
|
||||
getTelegramHouseholdChat: async () => null,
|
||||
getHouseholdChatByHouseholdId: async () => null,
|
||||
getHouseholdChatByHouseholdId: async () => ({
|
||||
householdId: 'household-1',
|
||||
householdName: 'Kojori House',
|
||||
telegramChatId: '-100123',
|
||||
telegramChatType: 'supergroup',
|
||||
title: 'Kojori House',
|
||||
defaultLocale: 'ru'
|
||||
}),
|
||||
bindHouseholdTopic: async (input) => ({
|
||||
householdId: input.householdId,
|
||||
role: input.role,
|
||||
@@ -268,6 +275,7 @@ describe('createMiniAppAdminService', () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
status: 'ok',
|
||||
householdName: 'Kojori House',
|
||||
settings: {
|
||||
householdId: 'household-1',
|
||||
settlementCurrency: 'GEL',
|
||||
@@ -327,6 +335,7 @@ describe('createMiniAppAdminService', () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
status: 'ok',
|
||||
householdName: 'Kojori House',
|
||||
settings: {
|
||||
householdId: 'household-1',
|
||||
settlementCurrency: 'GEL',
|
||||
|
||||
Reference in New Issue
Block a user