fix ci issues

This commit is contained in:
undefined committed 2025-04-02 00:35:45 +08:00
1 parent 466bc984bd
commit 8af621222c
26 files changed
+108 -85

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ import {
const icon = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m20.665 3.717-17.73 6.837c-1.21.486-1.203 1.161-.222 1.462l4.552 1.42 10.532-6.645c.498-.303.953-.14.579.192l-8.533 7.701h-.002l.002.001-.314 4.692c.46 0 .663-.211.921-.46l2.211-2.15 4.599 3.397c.848.467 1.457.227 1.668-.785l3.019-14.228c.309-1.239-.473-1.8-1.282-1.434z"/></svg>';
export default class TelegramService extends Service {
static inject = ['oauth'];
static Config = Schema.object({
token: Schema.string().role('secret').required(),
botLogin: Schema.string().required(),
@@ -16,7 +17,7 @@ export default class TelegramService extends Service {
constructor(ctx: Context, config: ReturnType<typeof TelegramService.Config>) {
super(ctx, 'oauth.telegram');
ctx.provideModule('oauth', 'telegram', {
ctx.oauth.provide('telegram', {
text: 'Login with Telegram',
name: 'Telegram',
icon,