16 lines
267 B
TypeScript
16 lines
267 B
TypeScript
import { Entity } from '@mikro-orm/core'
|
|
|
|
import { BaseTile } from '#entities/base/tile'
|
|
|
|
@Entity()
|
|
export class Tile extends BaseTile {
|
|
public async cache() {
|
|
try {
|
|
return this
|
|
} catch (error) {
|
|
console.error(error)
|
|
return {}
|
|
}
|
|
}
|
|
}
|