Skip to content

Commit

Permalink
MongoDB: WHAT A GARBAGE DRIVER
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Jan 14, 2024
1 parent 9b59d50 commit 24e57ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ public val kordExCodecRegistry: CodecRegistry = CodecRegistries.fromCodecs(
KotlinSerializerCodec.create<Snowflake>(),

KotlinSerializerCodec.create<StorageType>(),
KotlinSerializerCodec.create<StorageType.Config>(),
KotlinSerializerCodec.create<StorageType.Data>(),
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ import kotlinx.serialization.Serializable
* @property type Human-readable storage type name.
*/
@Serializable(with = StorageTypeSerializer::class)
public sealed class StorageType(public val type: String) {
/** Configuration data. **/
public object Config : StorageType("config")

/** Long-term dynamic data. **/
public object Data : StorageType("data")
public enum class StorageType(public val type: String) {
Config("config"),
Data("data")
}

0 comments on commit 24e57ca

Please sign in to comment.