Committing split of dbops into read/write/admin ops, for security and multi-db deployments. THIS BREAKS THE INSTALLATION.
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Activizr.Utility.BotCode
|
||||
// Every hour of the day, we check that this has been recorded for the day. This is just in case
|
||||
// the bot isn't running at midnight, to make sure that we get one entry per day.
|
||||
|
||||
if (PirateDb.GetDatabase().GetBlogTopList(DateTime.Today) == null)
|
||||
if (PirateDb.GetDatabaseForReading().GetBlogTopList(DateTime.Today) == null)
|
||||
{
|
||||
ScrapeAndStore();
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace Activizr.Utility.BotCode
|
||||
dateTimeClosed = turnaround.DateTimeOpened;
|
||||
}
|
||||
|
||||
PirateDb.GetDatabase().SetCommunicationTurnaroundClosed(Organization.PPSEid, 1, turnaround.CommunicationId, (DateTime) dateTimeClosed, 0);
|
||||
PirateDb.GetDatabaseForWriting().SetCommunicationTurnaroundClosed(Organization.PPSEid, 1, turnaround.CommunicationId, (DateTime) dateTimeClosed, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user