mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
chore(fix): lint
This commit is contained in:
@@ -75,7 +75,6 @@ type RuntimeChecker interface {
|
|||||||
ListChecks(ctx context.Context, botID string) []BotCheck
|
ListChecks(ctx context.Context, botID string) []BotCheck
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
BotStatusCreating = "creating"
|
BotStatusCreating = "creating"
|
||||||
BotStatusReady = "ready"
|
BotStatusReady = "ready"
|
||||||
|
|||||||
@@ -403,10 +403,6 @@ func extractThreadID(msg channel.InboundMessage) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func isGroupConversationType(conversationType string) bool {
|
|
||||||
return channel.NormalizeConversationType(conversationType) != channel.ConversationTypePrivate
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *IdentityResolver) tryLinkConfiglessChannelIdentityToUser(ctx context.Context, msg channel.InboundMessage, channelIdentityID string) string {
|
func (r *IdentityResolver) tryLinkConfiglessChannelIdentityToUser(ctx context.Context, msg channel.InboundMessage, channelIdentityID string) string {
|
||||||
if r.registry == nil || !r.registry.IsConfigless(msg.Channel) {
|
if r.registry == nil || !r.registry.IsConfigless(msg.Channel) {
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ func createBotForChatPresence(ctx context.Context, queries *sqlc.Queries, ownerU
|
|||||||
}
|
}
|
||||||
row, err := queries.CreateBot(ctx, sqlc.CreateBotParams{
|
row, err := queries.CreateBot(ctx, sqlc.CreateBotParams{
|
||||||
OwnerUserID: pgOwnerID,
|
OwnerUserID: pgOwnerID,
|
||||||
Type: "personal",
|
|
||||||
DisplayName: pgtype.Text{String: "presence-test-bot", Valid: true},
|
DisplayName: pgtype.Text{String: "presence-test-bot", Valid: true},
|
||||||
IsActive: true,
|
IsActive: true,
|
||||||
Metadata: meta,
|
Metadata: meta,
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ func createUserBotAndSchedule(ctx context.Context, t *testing.T, queries *sqlc.Q
|
|||||||
meta, _ := json.Marshal(map[string]any{"source": "schedule-integration-test"})
|
meta, _ := json.Marshal(map[string]any{"source": "schedule-integration-test"})
|
||||||
botRow, err := queries.CreateBot(ctx, sqlc.CreateBotParams{
|
botRow, err := queries.CreateBot(ctx, sqlc.CreateBotParams{
|
||||||
OwnerUserID: pgOwnerID,
|
OwnerUserID: pgOwnerID,
|
||||||
Type: "personal",
|
|
||||||
DisplayName: pgtype.Text{String: "schedule-test-bot", Valid: true},
|
DisplayName: pgtype.Text{String: "schedule-test-bot", Valid: true},
|
||||||
AvatarUrl: pgtype.Text{},
|
AvatarUrl: pgtype.Text{},
|
||||||
IsActive: true,
|
IsActive: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user