mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-03-17 21:27:52 +02:00
updated code comments and added v0.23.0-rc release notes
This commit is contained in:
parent
bc67835de9
commit
292c34ee52
1182
CHANGELOG.md
1182
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
1114
CHANGELOG_16_22.md
Normal file
1114
CHANGELOG_16_22.md
Normal file
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@ This document describes how to prepare a PR for a change in the main repository.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Go 1.21+ (for making changes in the Go code)
|
||||
- Go 1.23+ (for making changes in the Go code)
|
||||
- Node 18+ (for making changes in the Admin UI)
|
||||
|
||||
If you haven't already, you can fork the main repository and clone your fork so that you can work locally:
|
||||
|
@ -89,7 +89,7 @@ func recordAuthWithOAuth2(e *core.RequestEvent) error {
|
||||
|
||||
var authRecord *core.Record
|
||||
|
||||
// check for existing relation with the auth record
|
||||
// check for existing relation with the auth collection
|
||||
externalAuthRel, err := e.App.FindFirstExternalAuthByExpr(dbx.HashExp{
|
||||
"collectionRef": form.collection.Id,
|
||||
"provider": form.Provider,
|
||||
|
@ -52,6 +52,9 @@ func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
|
||||
}
|
||||
|
||||
// DeleteOldLogs delete all requests that are created before createdBefore.
|
||||
//
|
||||
// For better performance the logs delete is executed as plain SQL statement,
|
||||
// aka. no delete model hook events will be fired.
|
||||
func (app *BaseApp) DeleteOldLogs(createdBefore time.Time) error {
|
||||
formattedDate := createdBefore.UTC().Format(types.DefaultDateLayout)
|
||||
expr := dbx.NewExp("[[created]] <= {:date}", dbx.Params{"date": formattedDate})
|
||||
|
Loading…
x
Reference in New Issue
Block a user