mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 08:17:16 +00:00
[Merchants] Convert Clear/Delete/Save of Temporary Merchant Lists to Repositories (#3945)
* [Merchants] Convert Clear/Delete/Save of Temporary Merchant Lists to Repositories - Convert `ClearMerchantTemp()`, `DeleteMerchantTemp()`, and `SaveMerchantTemp()` to repositories. * Update merchantlist_temp_repository.h
This commit is contained in:
@@ -44,7 +44,15 @@ public:
|
||||
*/
|
||||
|
||||
// Custom extended repository methods here
|
||||
|
||||
static void ClearTemporaryMerchantLists(Database& db)
|
||||
{
|
||||
db.QueryDatabase(
|
||||
fmt::format(
|
||||
"TRUNCATE {}",
|
||||
TableName()
|
||||
)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EQEMU_MERCHANTLIST_TEMP_REPOSITORY_H
|
||||
|
||||
Reference in New Issue
Block a user