Lots of work on log; half-ready Change Organizations; added sanitation of Json data
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Swarmops.Database
|
||||
return ReadDocumentFromDataReader(reader);
|
||||
}
|
||||
|
||||
throw new ArgumentException("Unknown Account Id");
|
||||
throw new ArgumentException("Unknown Document Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Swarmops.Database
|
||||
|
||||
private const string swarmopsLogFieldSequence =
|
||||
" SwarmopsLogEntryId,DateTime,PersonId,EntryTypeId,EntryXml " + // 0-4
|
||||
"FROM SwarmopsLog";
|
||||
"FROM SwarmopsLog ";
|
||||
|
||||
private static BasicSwarmopsLogEntry ReadSwarmopsLogEntryFromDataReader(IDataRecord reader)
|
||||
{
|
||||
@@ -104,6 +104,7 @@ namespace Swarmops.Database
|
||||
AddParameterWithName(command, "personId", personId);
|
||||
AddParameterWithName(command, "entryType", entryType);
|
||||
AddParameterWithName(command, "entryXml", entryXml);
|
||||
AddParameterWithName(command, "dateTime", DateTime.UtcNow);
|
||||
|
||||
return Convert.ToInt32(command.ExecuteScalar());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user