func IsDraftMode(db *gorm.DB) bool {
	if draftMode, ok := db.Get(publishDraftMode); ok {
		if isDraft, ok := draftMode.(bool); ok && isDraft {
			return true
		}
	}
	return false
}
// IsDraftMode check if current db in draft mode
IsDraftMode check if current db in draft mode
// IsDraftMode check if current db in draft mode
func IsDraftMode(db *gorm.DB) bool {
	if draftMode, ok := db.Get(publishDraftMode); ok {
		if isDraft, ok := draftMode.(bool); ok && isDraft {
			return true
		}
	}
	return false
}
func IsDraftMode ( db * gorm . DB ) bool { if draftMode , ok := db . Get ( publishDraftMode ) ; ok { if isDraft , ok := draftMode . ( bool ) ; ok && isDraft { return true } } return false }
IsDraftMode check if current db in draft mode
IsDraftMode check if current db in draft mode