feat: implement create functionality for WapServers across server, sysadmin, and CLI layers

This commit is contained in:
2026-07-30 17:45:45 -03:00
parent 146770a55d
commit cb830fcf01
12 changed files with 167 additions and 16 deletions
@@ -1,4 +1,5 @@
import {
CreateWapServerParams,
FindWapServerParams,
IWapServer,
IWapServerAdapter,
@@ -28,6 +29,10 @@ export class WapServerAdapterMongoose implements IWapServerAdapter {
this.serverList = model<IWapServerDocument>("WapServer", this.schema);
}
public async create(data: CreateWapServerParams): Promise<IWapServer> {
return await this.serverList.create(data);
}
public async find(data: FindWapServerParams): Promise<IWapServer[]> {
return this.serverList.find(data).exec();
}