mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
fixed usage of migrations
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
94c3857d49
commit
6480c142a9
3 changed files with 31 additions and 10 deletions
|
@ -1,14 +1,9 @@
|
|||
import { Sequelize } from 'sequelize-typescript'
|
||||
import { logger } from './logger'
|
||||
import { realtime } from './realtime'
|
||||
import { config } from './config'
|
||||
import fs from 'fs'
|
||||
import { Revision } from './models'
|
||||
|
||||
export function isSQLite (sequelize: Sequelize): boolean {
|
||||
return sequelize.options.dialect === 'sqlite'
|
||||
}
|
||||
|
||||
export function getImageMimeType (imagePath: string): string | undefined {
|
||||
const fileExtension = /[^.]+$/.exec(imagePath)
|
||||
switch (fileExtension?.[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue