koishi-plugin-github-webhook-pusher 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/database.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Context } from 'koishi';
2
- import { EventType } from './config';
2
+ import { EventType } from './types';
3
3
  declare module 'koishi' {
4
4
  interface Tables {
5
5
  github_trusted_repos: TrustedRepo;
package/lib/index.js CHANGED
@@ -64,8 +64,8 @@ var Config = import_koishi.Schema.object({
64
64
  // src/database.ts
65
65
  function extendDatabase(ctx) {
66
66
  ctx.model.extend("github_trusted_repos", {
67
- id: "unsigned",
68
- repo: "string",
67
+ id: { type: "unsigned", length: 10 },
68
+ repo: { type: "string", length: 255 },
69
69
  enabled: "boolean",
70
70
  createdAt: "timestamp",
71
71
  updatedAt: "timestamp"
@@ -75,7 +75,7 @@ function extendDatabase(ctx) {
75
75
  unique: ["repo"]
76
76
  });
77
77
  ctx.model.extend("github_subscriptions", {
78
- id: "unsigned",
78
+ id: { type: "unsigned", length: 10 },
79
79
  platform: "string",
80
80
  channelId: "string",
81
81
  guildId: "string",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-github-webhook-pusher",
3
3
  "description": "GitHub Webhook 事件推送插件",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "contributors": [
6
6
  "ClozyA <aoxuan233@gmail.com>"
7
7
  ],