Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: orm的 $.eq 等方法不支持 Date 类型 #771

Closed
ifrvn opened this issue Aug 1, 2022 · 1 comment
Closed

Bug: orm的 $.eq 等方法不支持 Date 类型 #771

ifrvn opened this issue Aug 1, 2022 · 1 comment
Labels
bug BUG

Comments

@ifrvn
Copy link

ifrvn commented Aug 1, 2022

Describe the bug

orm的 $.eq 等方法不支持 Date 类型

Steps to reproduce

import { $ } from 'koishi'

declare module 'koishi' {
  interface User {
    createdAt: Date
    updatedAt: Date
  }
}

ctx.database.get('user', row => $.eq(row.createdAt, row.updatedAt))

Expected behavior

支持比较 Date

Screenshots

image

Versions

  • Koishi version: 4.7.6

Additional context

No response

@ifrvn ifrvn added the bug BUG label Aug 1, 2022
@shigma
Copy link
Member

shigma commented Aug 7, 2022

fixed by cordiverse/minato@44f5996

@shigma shigma closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

2 participants